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

Solved Same world respawn

Discussion in 'Development' started by TheGhan, Apr 12, 2017.

  1. TheGhan

    TheGhan Silverfish

    Messages:
    15
    <SOLVED>
     
    Last edited: May 19, 2017
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    any attempts at debugging it? like simple echo to make sure the pointer actually reaches there?
     
    HimbeersaftLP and Primus like this.
  3. Primus

    Primus Zombie Pigman

    Messages:
    749
    PlayerRespawnEvent is called before player even respawn. Technically he is dead while you try to teleport him, perhaps set respawn position in event.
    Code:
    PlayerRespawnEvent::setRespawnPosition(Position $position)
    
     
  4. TheGhan

    TheGhan Silverfish

    Messages:
    15
    I read on the old PocketMine Forums it wasn't working correctly. I will try again, thanks!
     
  5. TheGhan

    TheGhan Silverfish

    Messages:
    15
    Everything working fine! Next time I'll have to try for myself instead of trusting outdated information. Thanks @Primus!
     
    Primus and jasonwynn10 like this.
  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.