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

Lobby Plugin

Discussion in 'Requests' started by XxCodeRedxX, May 13, 2017.

  1. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    can someone create a plugin where you type /lobby and it teleport to a server which you can edit in the config.
     
  2. AnkitM252

    AnkitM252 Spider Jockey

    Messages:
    29
    GitHub:
    AnkitM252
    Here:
     

    Attached Files:

    Glowzify, XxCodeRedxX and XCodeMCPE like this.
  3. MCForever5

    MCForever5 Silverfish

    Messages:
    17
    Why its not work
     
  4. Mittz

    Mittz Spider Jockey

    Messages:
    37
    GitHub:
    Mittz
    Try mspawns
     
  5. Invy55

    Invy55 Witch

    Messages:
    52
    GitHub:
    invy55
    Maybe beacause this plugin is old?
     
    ethaniccc likes this.
  6. Flavius12

    Flavius12 Spider Jockey

    Messages:
    32
    GitHub:
    flavius12
  7. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Why are you guys bumping an old thread :L
     
  8. SpekledFrog4T4

    SpekledFrog4T4 Creeper

    Messages:
    3
    use pocketmine\server;
    use pocketmine\player;
    use pocketmine\command\Command;
    use pocketmine\command\CommandSender;
    use pocketmine\event\Listener;
    use pocketmine\plugin\PluginBase;
    use pocketmine\math\Vector3;
    use pocketmine\level\Position;

    class Main extends PluginBase implements listener {

    public function onEnable(){
    $this->getlogger()->info("plugin Enabled");
    $this->getServer()->getPluginManager()->registerEvents($this, $this);
    }

    public function onDisable(){
    $this->getlogger()->info("plugin Disabled");
    }

    public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args) : bool {


    if($cmd->getName() == "spawn"){
    if($sender instanceof Player){
    $this->getServer()->loadlevel("your worldname");
    $level = $this->getServer()->getLevelByName("your worldname");
    $sender->teleport(new Position(448, 76, 297, $level));
    $sender->setHealth(20);
    $sender->setFood(20);




    }
    return true;

    }
    }
    }

    try this
     
  9. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    .-., why r u bumping up an old thread
     
  10. SpekledFrog4T4

    SpekledFrog4T4 Creeper

    Messages:
    3
    cuz why not
     
  11. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    it's hurting me man :c, and not only me
     
  12. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    "cuz why not" - :cool:
     
  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.