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

Spawn Point

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

  1. Notjblus

    Notjblus Spider Jockey

    Messages:
    28
    GitHub:
    JblusItsMe
    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 Witch

    Messages:
    68
    GitHub:
    dimbis
    PHP:
    public function onRespawn(PlayerRespawnEvent $event){
    $player $event->getPlayer();
    $player->teleport($this->getServer()->getLevelByName("world")->getSafeSpawn());
     
  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.