[CRITICAL!] Death spawnpoint

Discussion in 'Archived: Plugin Requests' started by zecheesy, Oct 30, 2012.

  1. Offline


    Sadly, I switched over to essentials.
    It doesn't tp you to spawn on death..

    1 command:

    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.
  2. Offline


    Um, all you have to do is set a spawn at the location. The player will spawn there after death. COmmand is /setspawn.
  3. Offline


    Nope, I was playing earlier on his server, and it kept respawning me somewhere totally not spawn.

    I'll do this later, need to sleep now.
  4. Offline


    Then your doing something wrong...
    If you have multiverse and permissions make sure you set it right and for both.

    /setspawn GROUP

    /setspawn guest
    /setspawn member
  5. Offline


    For devs interested:
    public void onPlayerDeath (PlayerDeathEvent e) {
  6. Offline


    Wrong, you'll need the PlayerRespawnEvent and it's method setRespawnLocation() ;)
    PogoStick29 and Woobie like this.
  7. Offline


    Here you go! Worked for me, I hope it works for you ;)
    <Edit by Moderator: Redacted mediafire url>

    - /setdeathspawn

    - deathspawn.set
    Last edited by a moderator: Nov 9, 2016
    zecheesy likes this.
  8. Offline


    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.
  9. Offline


    I use that template everytime I create new project, its just easier to have thoes there :D

    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 -_-
  10. Offline


    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 ;)
  11. Offline


    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.
  12. Offline


    That was not the problem

Share This Page