Sadly, I switched over to essentials. It doesn't tp you to spawn on death.. 1 command: /setdeathspawn This sets where you spawn after you die. When you die, you are tped to the /setdeathspawn location. If possible store pitch/yaw/direction with the coordinates! No permissions. For all group / people. Need this as soon as possible. People are spawning on a griefed archepelego thing.
Um, all you have to do is set a spawn at the location. The player will spawn there after death. COmmand is /setspawn.
Nope, I was playing earlier on his server, and it kept respawning me somewhere totally not spawn. zecheesy I'll do this later, need to sleep now.
Then your doing something wrong... If you have multiverse and permissions make sure you set it right and for both. /mvsetspawn /setspawn GROUP Example: /setspawn guest /setspawn member
For devs interested: Code: @EventHandler public void onPlayerDeath (PlayerDeathEvent e) { e.getPlayer().teleport(location); }
zecheesy Here you go! Worked for me, I hope it works for you <Edit by Moderator: Redacted mediafire url> Commands - /setdeathspawn Permissions - deathspawn.set
Woobie Why do you cast Player to sender before you check if the sender isn't a player? Also, you define variables that you don't need, like all the ChatColors. This isn't a problem but it just adds extra lines of code.
I use that template everytime I create new project, its just easier to have thoes there It doesnt matter if the string is below or ontop of the if sender instanceof player. Why are you always talking about this same thing? You're always complaining about something when I finish a plugin -_-
I *think* it does matter because you are saying that the sender is a player before checking if the sender is a player. The only reason why I always give you constructive criticism is because the only time I see your code is after you've written it
Copied from the essentials config.... # When users die, should they respawn at their first home or bed, instead of the spawnpoint? respawn-at-home: false # End of File <-- No seriously, you're done with configuration.