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

Solved Set the player's spawnpoint and teleport to their spawn point

Discussion in 'Help' started by NakiFx, Sep 8, 2020.

  1. NakiFx

    NakiFx Silverfish

    Messages:
    17
    GitHub:
    nakifx
    How to set player spawn point and teleport them to their spawn point?
     
  2. xKolqd_

    xKolqd_ Silverfish

    Messages:
    17
    PHP:
    $player->setSpawn(new Position($x$y$z$level));
    When the player dies, he returns to the spawn point that you added.
     
  3. Primus

    Primus Zombie Pigman

    Messages:
    749
    I could've given you same answer earlier if you had chosen the right category for thread.
     
  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.