Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send loading screen when doing /hub

Comments in 'Plugin Development' started by ImNotHere, Nov 15, 2016.

  1. ImNotHere
    Offline

    ImNotHere New Member

    Joined:
    Nov 12, 2016
    Posts:
    4
    Minecraft User:
    NetswordPe
    Guys how to send loading screen to player when they do /hub
    I am using this: (i know this dont work)
    elseif($cmd[0] === "/hub"){
    $player->getInventory()->clearAll();
    $player->getLevel()->addSound(new EndermanTeleportSound($player));
    $event->getPlayer()->teleport(Server::getInstance()->getLevelByName("spawn")->getSafeSpawn());
    $this->getLevel()->getDimension();
    $this->setRank($player);
    $this->Items($player);
    $event->setCancelled(true);

    PLEASE HELP
  2. SamGamgee55
    Offline

    SamGamgee55 Active Member

    Joined:
    Sep 29, 2016
    Posts:
    52
    Minecraft User:
    SamGamgee55
    Post this on the new forums, please. The link is in my signature
  3. ImNotHere
    Offline

    ImNotHere New Member

    Joined:
    Nov 12, 2016
    Posts:
    4
    Minecraft User:
    NetswordPe
  4. ImNotHere
    Offline

    ImNotHere New Member

    Joined:
    Nov 12, 2016
    Posts:
    4
    Minecraft User:
    NetswordPe

Share This Page

Advertisement