/lobby /hub plugin for sb server

Discussion in 'Plugin Help' started by Jenno, Aug 24, 2019.

  1. Jenno

    Jenno Silverfish

    Messages:
    21
    GitHub:
    Jenno
    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.
     
  2. Mango

    Mango Spider

    Messages:
    9
  3. Jenno

    Jenno Silverfish

    Messages:
    21
    GitHub:
    Jenno
  4. Willoxey

    Willoxey Creeper

    Messages:
    5
    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");
    }
     
  5. TwistedFellow

    TwistedFellow Silverfish

    Messages:
    20
    GitHub:
    SilverzPlayz
    Or Just make them teleport to a default spawn level, instead of all this
     
  6. GamakCZ

    GamakCZ Zombie

    Messages:
    247
    GitHub:
    GamakCZ
    Make your own Spawn plugin here
     
    HimbeersaftLP likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.