DeathDisconnect

Discussion in 'Archived: Plugin Requests' started by x128, Jul 16, 2013.

  1. Offline

    x128

    Plugin category: Misc.

    Suggested name: DeathDisconnect

    What I want: I would love to see a super simple plugin that kills the player on logout. That is all the plugin needs to do.

    Why do I want this? I am building a UHC Network and I need the players to die when/if they disconnect from a UHC server before they die themselves.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: Today.
     
  2. Offline

    tombath10

    I'm creating this now for you.
     
  3. Offline

    x128

  4. Offline

    TheGamersCave

  5. Offline

    x128

    TheGamersCave Thank you so much. This is exactly what I wanted. Great work :D
     
  6. Offline

    TheGamersCave

    Thanks, glad you enjoy it! If you want any changes or anything added just let me know :)
     
  7. Offline

    x128

    Will do!
     
  8. Offline

    x128

    If you could add a permission node, something along the lines of deathdisconnect.ignored, that would be awesome. It is getting slightly annoying getting killed every time I log off an arena to check things out :p
     
  9. Offline

    TheGamersCave

    Sure thing, I'll add this in now; I'll update my post whenever I'm done :)

    Edit:
    Here you go! If you give a user/group the permission "deathleave.ignored", that user/group won't be killed when they leave :)

    I suggest having Vault on your server, as this update hooks into vault for the permissions handling

    If you need anything else, let me know :)
     
  10. Offline

    x128

  11. Offline

    JPG2000

    x128 I know you got this plugin made aready, but heres how easy it is:


    PlayerDeathEvent
    player.setHealth(0)
    playerinventory.clear



    Now that I think about it, that wont work since the player woud be offine. Damnit..
     

Share This Page