Under worlds: in pocketmine.yml If you want to load a world called lazerisdumb, you do this: PHP: worlds: lazerisdumb: []
Thanks. Any suggestions for plugins that do this and will run on the latest build with API 3.0.0-ALPHA5?
PHP: if($commandName === 'chlevel'){ if($sender instanceof Player){ if(count($args) === 1){ $worldName = array_shift($args); $level = $this->getServer()->getLevelByName($worldName); if($level !== null){ $newLevel = $this->getServer()->getLevelByName($worldName); $sender->teleport(new Position($sender->getX(), $sender->getY(), $sender->getZ(), $newLevel)); $this->getServer()->getLogger()->info("§f{$sender->getName()} has gone to {$worldName}.§r"); return true; }else{ $sender->sendMessage("§c{$worldName} does not exist.§r"); return true; } }else{ return false; } }else{ $sender->sendMessage("§cCommand for players only.§r"); return true; }} Pop this into onCommand() in any plugin's main class.