1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

/lobby /hub plugin for sb server

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

  1. Jenno

    Jenno Spider Jockey

    Messages:
    36
    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 Spider Jockey

    Messages:
    36
    GitHub:
    Jenno
  4. Willoxey

    Willoxey Spider Jockey

    Messages:
    33
    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:
    22
    GitHub:
    SilverzPlayz
    Or Just make them teleport to a default spawn level, instead of all this
     
  6. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    Make your own Spawn plugin here
     
    HimbeersaftLP likes this.
  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.