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:
    15
    GitHub:
    nakifx
    How to set player spawn point and teleport them to their spawn point?
     
  2. xKolqd_

    xKolqd_ Spider

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

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.