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

I want to teleport to another world with / sur join

Discussion in 'Help' started by TheKevnSG, Dec 24, 2019.

  1. TheKevnSG

    TheKevnSG Silverfish

    Messages:
    18
    GitHub:
    thekevinsg
    I want to move to another world with / sur join and when I leave the server and re-enter send me where I was not to the lobby

    someone help me
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    So you need a plugin that makes sure players always spawn in the lobby?
     
  3. TheKevnSG

    TheKevnSG Silverfish

    Messages:
    18
    GitHub:
    thekevinsg
    ¿Cómo me teletransporto a otro mundo un código
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Code for teleporting a player to the spawn point in your default world:
    PHP:
    $level $this->getServer()->getDefaultLevel();
    $spawnPos $level->getSpawnLocation();
    $player->teleport($spawnPos);
     
  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.