Hello everyone! Its me, jython234, with a problem... So I handler shown below: PHP: public function onGamemodeChange($player){ //Player gamemode change event $playerName = $player['username']; $this->api->chat->broadcast("[JyChat]: $playerName had their gamemode changed to: ". $player->gamemode); } The problem is, when a player changes their gamemode the name shows up blank... I've also tried: PHP: $player->username$player->iusername How can I get the player's name? Without it, this message isn't going to be helpful...
Because is: PHP: public function onGamemodeChange($player){ //Player gamemode change event $playerName = $player['player']->username; $this->api->chat->broadcast("[JyChat]: $playerName had their gamemode changed to: ". $player['gamemode']); } The event send a array. Player(Object) and Gamemode(Int)