You need to change issuer to data when using an event. Then to get the player go to $data["player"]. Here is the fixed code: PHP: <?php/*__PocketMine Plugin__name=JoinMessageversion=1.0.0-BETAauthor=JassperBeastHDclass=messageapiversion=10*/class message implements Plugin{private $api;public function __construct(ServerAPI $api, $server = false){$this->api = $api;}public function init(){$this->api->addHandler("player.join", array($this, "handler"), 5);$this->api->addHandler("player.respawn", array($this, "handler"), 5);}public function __destruct(){}public function handler($data, $event){$player = $data["player"];switch($event){case "player.join":$player->sendChat("====[SBP Server]====\nWelcome @player to SBP Server\n-Owner=XxSilentBeastxX_\n-Youtube=XxSilentBeastGamerxX\n-Co-Owner=JassperBeastHD\n-Youtube=JassperBeastHD\n====[SBP Server]====\n");break;case "player.respawn":$player->sendChat("====[Death Message]====\n-You died\n-To bad you lose your stuff\n-Make sure to get your stuff back\n====[Death Message]====\n");break;}}} I'm pretty tired though and could be wrong
ERROR] A level 2 error happened: "Illegal string offset 'player'" in "/mnt/sdcard/DroidPocketMine/src/API/PluginAPI.php(87) : eval()'d code" at line 25
$data is the player object itself, "player.join" and "player.respawn" doesn't return anything else other then the player object. So $player = $data