@@ -33,7 +33,7 @@ public function init(): void
33
33
*/
34
34
public function register (IPLayer $ player , ?callable $ onInserted = null , ?callable $ onError = null ): void
35
35
{
36
- $ this ->connector ->executeInsert (self ::REGISTER , [$ player ->getname ()], $ onInserted , $ onError );
36
+ $ this ->connector ->executeInsert (self ::REGISTER , [' name ' => $ player ->getName ()], $ onInserted , $ onError );
37
37
38
38
}
39
39
@@ -46,7 +46,7 @@ public function register(IPLayer $player, ?callable $onInserted = null, ?callabl
46
46
*/
47
47
public function unregister (IPLayer $ player , ?callable $ onSuccess = null , ?callable $ onError = null ): void
48
48
{
49
- $ this ->connector ->executeChange (self ::UNREGISTER , [$ player ->getName ()], $ onSuccess , $ onError );
49
+ $ this ->connector ->executeChange (self ::UNREGISTER , [' name ' => $ player ->getName ()], $ onSuccess , $ onError );
50
50
}
51
51
52
52
/**
@@ -58,7 +58,7 @@ public function unregister(IPLayer $player, ?callable $onSuccess = null, ?callab
58
58
*/
59
59
public function get (IPlayer $ player , callable $ onSuccess = null , ?callable $ onError = null ): void
60
60
{
61
- $ this ->connector ->executeSelect (self ::GET , [$ player ->getName ()], $ onSuccess , $ onError );
61
+ $ this ->connector ->executeSelect (self ::GET , [' name ' => $ player ->getName ()], $ onSuccess , $ onError );
62
62
}
63
63
64
64
/**
@@ -71,6 +71,6 @@ public function get(IPlayer $player, callable $onSuccess = null, ?callable $onEr
71
71
*/
72
72
public function add (IPlayer $ player , int $ exp = 0 , ?callable $ onSuccess = null , ?callable $ onError = null ): void
73
73
{
74
- $ this ->connector ->executeChange (self ::ADD , [$ player ->getName (), $ exp ], $ onSuccess , $ onError );
74
+ $ this ->connector ->executeChange (self ::ADD , [' name ' => $ player ->getName (), $ exp ], $ onSuccess , $ onError );
75
75
}
76
76
}
0 commit comments