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

PlayerRespawnEvent setRespawnPosition issues

Comments in 'Plugin Development' started by Legoboy0215, Mar 29, 2016.

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
  2. MSG100PM
    Offline

    MSG100PM New Member

    Joined:
    Mar 9, 2016
    Posts:
    6
    Minecraft User:
    MSG100TC
    applqpak likes this.
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Use Player::setSpawn() before
    applqpak likes this.
  4. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    What? Why?
  5. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Because that works. The player will respawn at his spawn(Player::getSpawn()), means: Set the spawn where you want him to respawn
    applqpak and Legoboy0215 like this.
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Then what is the point of setRespawnPosition????
  7. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Setting the respawn Position without having to set the player's spawn. But it currently doesn't work correctly
    applqpak and Legoboy0215 like this.
  8. imJayL
    Offline

    imJayL Active Member

    Joined:
    Aug 5, 2015
    Posts:
    52
    Minecraft User:
    PHC_imJayL
    Thats my problem :(
    Respawnposition doesnt work .
  9. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Can you read? Just use Player::setSpawn()..
    applqpak likes this.
  10. applqpak
    Offline

    applqpak Active Member Plugin Developer

    Joined:
    Dec 16, 2015
    Posts:
    284
    Plugins:
    1
    Minecraft User:
    applqpak
    Lol xD
    Legoboy0215 likes this.
  11. imJayL
    Offline

    imJayL Active Member

    Joined:
    Aug 5, 2015
    Posts:
    52
    Minecraft User:
    PHC_imJayL
    Btw how to setspawn on default level?
    What should i do put?

    player->setspawn( ???? )
  12. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Check out the SetWorldSpawn command.
  13. xiaoq
    Offline

    xiaoq Active Member

    Joined:
    Dec 23, 2014
    Posts:
    232
    Minecraft User:
    xiaoq
    Player->setSpawn(Position);
  14. imJayL
    Offline

    imJayL Active Member

    Joined:
    Aug 5, 2015
    Posts:
    52
    Minecraft User:
    PHC_imJayL
    What should i put if i want to setSpawn on other world?

    player->setSpawn ( ???? )
  15. xiaoq
    Offline

    xiaoq Active Member

    Joined:
    Dec 23, 2014
    Posts:
    232
    Minecraft User:
    xiaoq
    Position include Level, setSpawn(new Position(x,y,z,Level level))
  16. MSG100PM
    Offline

    MSG100PM New Member

    Joined:
    Mar 9, 2016
    Posts:
    6
    Minecraft User:
    MSG100TC

Share This Page

Advertisement