Spawn Point

Discussion in 'General discussion' started by Notjblus, Aug 21, 2019.

  1. Notjblus

    Notjblus Spider

    Messages:
    11
    GitHub:
    DevJblus
    hellos, the spawn of my server is not to the endoit or spawn players, and at every kill on the server, the player does not teleport to the spawn despite the consecutive /setworldspawn, how to avoid this error or while it code I could add in my hand to avoid this
     
  2. Fadhel

    Fadhel Spider Jockey

    Messages:
    36
    GitHub:
    youngfad
    PHP:
    public function onRespawn(PlayerRespawnEvent $event){
    $player $event->getPlayer();
    $player->teleport($this->getServer()->getLevelByName("world")->getSafeSpawn());
     

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.