PHP: <?phpnamespace DIErespawnCR;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\math\Vector3;class Main extends PluginBase implements Listener{ public function onEnable(){ $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->getServer()->getLogger()->info("DIErespawnCR Enabled!"); } public function onDisable(){ $this->getServer()->getLogger()->info("DIErespawnCR Disabled!"); } public function onSpawn(PlayerJoinEvent $event){ $player = $event->getPlayer(); $player->teleport($player->getLevel()->getSafeSpawn()); }} hi, I made a plugin that TPS me to the hub world on death it is not working no errors om
I public function onSpawn(PlayerJoinEvent $event Okay thanks last thing, do I also change the onSpawn to on Respawn?
why joinevent? if you want players to teleport to spawn onDeath why use joinevent? are players gonna die onjoin? what ???
@QuiverlyRivalry... I’ve told you quite a lot of times now to USE A SENSIBLE TITLE!!!!!!!!!!!!!! It’s so people can identify the issue, just incase they have a similar issue.