Here is the code you must add PHP: use pocketmine\command\CommandSender;use pocketmine\command\Command;public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) { if ($cmd->getName() == "survival") { $level = $this->getServer()->getLevelByName("survival"); $spawn = $level->getSafeSpawn(); $sender->teleport($spawn, 0, 0); }}
An easier way is to use EssentialsPE from GitHub, you can do /gmc for creative, /creative, /gms for survival, /survival, and if those arnt good enough just change the command from /creative or /gmc to /c
He's asking for a plugin that teleports you to the world, not to change gamemodes You can do that with EssentialsPE or SimpleWarp though, using the warp features.
Yl You do not understand me. /survival For teleport in survival world. But ... Solved with modified warp.