I am working on an skyblock server. And i need an plugin if you are in the skyblock world it teleports you to the lobby/hub world. i know what you guys are going to say use worldtp but i want that you need to say the command /hub or /lobby. Ty for reading this pls help me.
Hi there! i was searching for a plugin that could do that too, but i didnt find. So if u have basic knowladge of PMP you can figure it out by your self. (you must have installed MultiWorld) import this: use czechpmdevs\multiworld\api\WorldManagementAPI; if($command->getName() === "hub") { if(!WorldManagementAPI::isLevelLoaded("TypeHereWorldName")) { WorldManagementAPI::loadLevel("TypeHereWorldName"); } $sender->teleport($this->getServer()->getLevelByName("TypeHereWorldName")->getSafeSpawn()); $sender->sendMessage( "You can put a message here"); }