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

Solved Getting the player's safe position

Discussion in 'Plugin Help' started by AppleDevelops, Jun 4, 2017.

  1. I've had a plugin that is supposed to teleport a player back to where they were before logging out, because you get teleported back to spawn with PC gen. I noticed that my players began to suffocate in walls when they logged back in. My question is, is there a way to get the player's old position, but safer?
     
    0x15f likes this.
  2. 0x15f

    0x15f Baby Zombie

    Messages:
    145
    GitHub:
    0x15f
    Save the exact position, then check if a block exists at their current position and teleport them to the highest block at that position.
     
    corytortoise likes this.
  3. falk

    falk Slime Poggit Reviewer

    Messages:
    75
    GitHub:
    falkirks
  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.