Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

setRespawnPosition() HELP

Comments in 'Plugin Development' started by ahoj_truhliku, Jul 16, 2015.

  1. ahoj_truhliku
    Offline

    ahoj_truhliku Banned

    Joined:
    Jul 9, 2015
    Posts:
    89
    Minecraft User:
    Creeperface001
    when i only setRespawnPosition() on respawnEvent so chunks don´t load how to fix it? i think loadChunk() doesn´t works for this.
  2. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    You could try another approach to setting a players respawn such as scheduling a delayed task that teleports the player to the position a half a second later. I always do that in my plugins cause it work flawlessly. Give it a try
  3. ahoj_truhliku
    Offline

    ahoj_truhliku Banned

    Joined:
    Jul 9, 2015
    Posts:
    89
    Minecraft User:
    Creeperface001
    setSpawn() works well but it is forever so i can try task but this should work too :/
  4. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    Try a task. They never fail me :)
    ahoj_truhliku likes this.

Share This Page

Advertisement