Exit in Combat = Drop Items / Die / Ban

Discussion in 'Archived: Plugin Requests' started by wildshoetwt, Mar 19, 2011.

  1. Offline

    wildshoetwt

    I'd be interested in a mod like this, if somebody is mid combat and exits the game, (not sure if you can tell an exit from a disconnect, that'd be ideal but it doesn't matter)...i'd like to see configurable options for punishments ranging from dropped items, to instant-kill to temp bans....

    ttt

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  2. Offline

    xchronox0

    There is a way to tell how they disconnected.
    Though I'm no good in java coding, I've noticed in the console a few different things when people leave the game.

    Something like:
    disconnected.quitting - This happens when they leave.
    disconnected.genericReason - I think this happens when there's an error, like the connection being reset.
    disconnected.timedOut - When the client lost connection to the server.

    However, even if you only punish them for quitting, they could just circumvent this by pulling.
     
  3. Offline

    snayler0

    I'm pretty sure disconnected.genericReason can show for a crash or a quit though, since the x button in the top right of the window shows disconnected.genericReason and using escape>disconnect shows disconnected.quitting.

    i'm no good with java coding, but i think this would cause issues with the requested plugin, as people could just use the x to save losing items or getting banned. On the other hand, people could be wrongly banned or losing items if they crash.

    good luck though, hopefully someone with a little more java knowledge will pick it up for you.
     
  4. Offline

    wildshoetwt

    hmm well you could set options based on whether they timed out or quit
     
  5. Offline

    wildshoetwt

    i know it's not much, but $5 paypal reward :)

    bump :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  6. Offline

    leslieliang

    I would love this, but it would be really hard to do.
     
  7. Offline

    wildshoetwt

    can you clarify why it would be difficult?
     
  8. Offline

    Codisimus

    If none takes on this one I will but I got a lot on my plate right now so might not be able to make it right away

    actually i will look into incorporating this with the PvP reward plugin ok?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  9. Offline

    AgentKid

    Yea, this would be a great plugin. Unfortunately, there really isn't a fool-proof way to detect a user's quitting to avoid pvp over a regular crash.

    What I'd like to see happening, though, would be something that disables all commands (tp, warp, spawn) for a configurable amount of time after being hit. Also, quitting after a seperate configurable amount of time after pvp (identified by disconnect.quitting for esc>disconnect or disconnect.endOfstream for Alt+F4) would result in auto-death.

    One thing this plugin HAS to have, though, is multi-world support so that servers with multiple worlds that may or may not be pvp don't get affected by this, although a no-pvp flag (depending on how the plugin is coded) might keep it from being triggered at all.
     
  10. Offline

    wildshoetwt

    That would be fantastic!
     
  11. Offline

    Codisimus

    somewhat added this feature into PvPReward but I have more work to do on it
     
  12. Offline

    Wakko

    I think worldguard has an option for temban on death.
     

Share This Page