Solved I feel like a noob now, help me out.

Discussion in 'Plugin Development' started by ZanctarianDevelopment, Apr 24, 2016.

Thread Status:
Not open for further replies.
  1. Hello, you developers may remember me as another developer, but I got kinda stuck with something I completely forgot how to do, and that is having a sign set only one player's spawn. I don't need help on how to detect the sign, I just need help with trying to figure out 'How to set a player's spawn by clicking a sign and storing the data in the config (Just use config even though I am using a separate file)'.
  2. Get player that clicked sign get location store that as a varible

    Then save that location to config

    Sent from my LGMS345 using Tapatalk
  3. I did, I used PlayerRespawnEvent, PlayerDeathEvent, EntityDeathEvent, and some methods and after trying those methods to make a player tp to the location that is set in config, it doesn't work. @Sorceresofminecraft
  4. Offline

    I Al Istannen

  5. @I Al Istannen I will try that, never thought about passing true.
  6. What are u trying to do again?

    Sent from my LGMS345 using Tapatalk
  7. Offline


    @ZanctarianDevelopment From what I remember from looking at the JavaDocs, the PlayerRespawnEvent should have a method to set the player's spawn.
  8. Offline


    @teej107 It does, there is a method in that event to set the respawn location.
  9. @I Al Istannen didnt work

    EDIT: Nvm, had to allow bed spawning in EssentialsSpawn config, thanks a lot for the help!
    Last edited: Apr 26, 2016
    I Al Istannen likes this.
Thread Status:
Not open for further replies.

Share This Page