@@ -33,7 +33,7 @@ public function init(): void
3333 */
3434 public function register (IPLayer $ player , ?callable $ onInserted = null , ?callable $ onError = null ): void
3535 {
36- $ this ->connector ->executeInsert (self ::REGISTER , [$ player ->getname ()], $ onInserted , $ onError );
36+ $ this ->connector ->executeInsert (self ::REGISTER , [' name ' => $ player ->getName ()], $ onInserted , $ onError );
3737
3838 }
3939
@@ -46,7 +46,7 @@ public function register(IPLayer $player, ?callable $onInserted = null, ?callabl
4646 */
4747 public function unregister (IPLayer $ player , ?callable $ onSuccess = null , ?callable $ onError = null ): void
4848 {
49- $ this ->connector ->executeChange (self ::UNREGISTER , [$ player ->getName ()], $ onSuccess , $ onError );
49+ $ this ->connector ->executeChange (self ::UNREGISTER , [' name ' => $ player ->getName ()], $ onSuccess , $ onError );
5050 }
5151
5252 /**
@@ -58,7 +58,7 @@ public function unregister(IPLayer $player, ?callable $onSuccess = null, ?callab
5858 */
5959 public function get (IPlayer $ player , callable $ onSuccess = null , ?callable $ onError = null ): void
6060 {
61- $ this ->connector ->executeSelect (self ::GET , [$ player ->getName ()], $ onSuccess , $ onError );
61+ $ this ->connector ->executeSelect (self ::GET , [' name ' => $ player ->getName ()], $ onSuccess , $ onError );
6262 }
6363
6464 /**
@@ -71,6 +71,6 @@ public function get(IPlayer $player, callable $onSuccess = null, ?callable $onEr
7171 */
7272 public function add (IPlayer $ player , int $ exp = 0 , ?callable $ onSuccess = null , ?callable $ onError = null ): void
7373 {
74- $ this ->connector ->executeChange (self ::ADD , [$ player ->getName (), $ exp ], $ onSuccess , $ onError );
74+ $ this ->connector ->executeChange (self ::ADD , [' name ' => $ player ->getName (), $ exp ], $ onSuccess , $ onError );
7575 }
7676}
0 commit comments