[CRITICAL!] Death spawnpoint

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

  1. Offline

    zecheesy

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

    piano9uber

    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

    Woobie

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

    LiLChris

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

    PogoStick29

    For devs interested:
    Code:
    @EventHandler
    public void onPlayerDeath (PlayerDeathEvent e) {
      e.getPlayer().teleport(location);
    }
     
  6. Offline

    Njol

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

    Woobie

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

    Commands
    - /setdeathspawn

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

    PogoStick29

    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

    Woobie

    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

    PogoStick29

    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

    the_merciless

    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

    Woobie

    That was not the problem
     

Share This Page