one issue with the code now there is an error with line 27 for some reason here is the code now: PHP: <?php/*__PocketMine Plugin__name=TOspawnversion=1.0apiversion=12author=Jerlegomanclass=spaplus*/class spaplus implements Plugin {private $api;public function __construct(ServerAPI $api,$server = false) {$this->api = $api;}public function init() {$this->api->addHandler("player.action", array($this, "eventHandle"), 50);}public function eventHandle($data, $event) {switch ($event) {case "player.action":$player = $data["player"];$item = $player->getSlot($player->slot);if($data["item"]->getID() == 345) {$data->sendChat("** Have Fun and BE CARE FULL!");}}public function __destruct() {}?> [NOTE]: line 27 is: PHP: public function __destruct() {