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.
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.
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.
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.
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.
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.
@wildshoetwt maybe CombatTag might help you ATM? http://forums.bukkit.org/threads/me...r-players-who-quit-while-in-combat-818.16644/