Here's my PHP code. The server runs OK but I can't use the plugin because don't make the config file. I add the WinAPI function but I don't know it's ok: PHP: And add the custom dead respawn: PHP: $tp = $this->getServer()->getPlayer($tp); if($tp !== null){ $tp->teleport($this->getServer()->config->get("WorldReSpawn")->getSpawn()); if($this->config->get("ItemEffectClear(on,off)") == "on"){ $tp->removeAllEffects(); $tp->getInventory()->clearAll(); My complete github code https://github.com/AndroidHackPro/MiniJuego-2vs2/blob/master/en/src/GoldPotatoBlaze/XvsY.php