SimplePenalty allows you to set a monetary penalty for players when they die, also know as a death penalty. I created this plugin when I needed one for my server, but couldn't find any plugins that were simple and straight forward.
Dependencies:
Vault
Commands:
Currently none
Configuration:
Check the generated config.yml for details.
Permissions:
Permission Node
Explanation
SimplePenalty.ignore
Causes user to not be penalized on death
SimplePenalty.reload
Allows the user to use /simplepenalty to reload settings
SimplePenalty uses SuperPerms, so it should work with all permissions systems.
Something is wrong with your config.yml. I'm pretty sure it has to do with the value for "server-account" in your configuration not containing the name to an existing bank account for iConomy. If you don't wish to use that feature, turn "enable-server-account" to false.
When first trying this I had CB-1.4.7-R1.0, Vault 1.2.23, SimplePenalty v1.6, Essentials-2.10.1 with an untouched version of your config file as generated by default and while it would give the penatly and penalty amount message in chat it was not reducing the balance.
However, in the server window it spams all three death messages into itself in order just like in config, but no one has the permission to exempt the penalty and no one is op.
I tried this using the same, but switching out Vault all the way down to version 1.2.20 which is also the same CB version as your most recent build for SP. Still says in chat about the fee, but no actual subtracting of the money.
So continuing to test this I stripped everything down to SP v1.6, Vault 1.2.20, Essentials, 2.9.6 and CB 1.4.7-r1.0 all similiar 1.4.5 CB versions of the plugins to try to see if that would work and still same effect says you lose the money, but its not actually removed.
Now my other plugins that interact with vault and essentials to give money or fines on mob kills and paydays work just fine so it makes me wonder if maybe something is not being passed between your plugin to vault then to essentials built in economy.
I have tried everything I can think of, and wish I could get it to work as yours actually has a custom message while being more up to date with CB versions.
It just worked for me using the latests builds of CB, Vault, and SimplePenalty. What versions are you running in specific? Can you post your config file?
trying to use this with newest CB and Vault and while it gives the message that the fee has been taken from your account it actually is not taking it away.
Would be kind of cool to be able to adjust the amount deducted based on how the player died.
For example, punishing them more for certain deaths than others. I don't like the idea of penalizing someone too much for dying in lava. Mainly because they probably just lost all of their items and hitting their account balance too seems like overkill to me. Just a thought.
There probably is something out there, but SimplePenalty currently doesn't do that. I also have no current plans to add it, since it seems kind of frivolous. I don't think it would be that hard to implement, however. If you really need it, send me a message or e-mail and I'll try to do a custom mod to SimplePenalty that can do this.
Well I didn't log any errors, but when I changed fixed-price: true and changed the death penalty message reloading didn't work, I had to restart server to take those changes. Not a big deal because these don't change very often lol. Other than that I don't see anything else wrong.
Posting an update. Although the fix was simple, I ran into other issues. So far, I've reworked a lot of the configuration code, but there are still some issues. Java is being picky and when I compile it, it doesn't want to run on my test server so I've had to resort to testing on my public server. I think I'm getting near completion, though, so I'll try to get a build uploaded soon.
EDIT: Just uploaded the new version. It should appear in the sidebar as soon as the bukkit dev team approves it. If you don't want to wait, you should be able to download it from http://dev.bukkit.org/server-mods/simplepenalty/files/9-simple-penalty-v1-6/
It should fix the bug, but tell me if you have any issues with it as I had quite a bit of trouble testing it.
I do, I also backed it up and deleted it and let the plugin create a new folder and config thinking it would fix them problem but it didn't, gave me the same error. Here is the old config: http://pastebin.com/fMFU9EvW
Got this error a few months back and never posted it, was updating server plugins and decided to see if this worked, still doesn't. Heres the error log: http://pastebin.com/zn9ZbyYh
I dont get it
@BeastsMC
I'll give it a try without the server account, thanks!
@DjBuRnOuTQc
Something is wrong with your config.yml. I'm pretty sure it has to do with the value for "server-account" in your configuration not containing the name to an existing bank account for iConomy. If you don't wish to use that feature, turn "enable-server-account" to false.
Yup, I pasted it there : http://pastebin.com/WsZ4qd1R
@DjBuRnOuTQc
Do you have an error log?
The plugin throws an error on PlayerDeathEvent on latest 1.6.2 build.
@BeastsMC
When first trying this I had CB-1.4.7-R1.0, Vault 1.2.23, SimplePenalty v1.6, Essentials-2.10.1 with an untouched version of your config file as generated by default and while it would give the penatly and penalty amount message in chat it was not reducing the balance.
However, in the server window it spams all three death messages into itself in order just like in config, but no one has the permission to exempt the penalty and no one is op.
I tried this using the same, but switching out Vault all the way down to version 1.2.20 which is also the same CB version as your most recent build for SP. Still says in chat about the fee, but no actual subtracting of the money.
So continuing to test this I stripped everything down to SP v1.6, Vault 1.2.20, Essentials, 2.9.6 and CB 1.4.7-r1.0 all similiar 1.4.5 CB versions of the plugins to try to see if that would work and still same effect says you lose the money, but its not actually removed.
Now my other plugins that interact with vault and essentials to give money or fines on mob kills and paydays work just fine so it makes me wonder if maybe something is not being passed between your plugin to vault then to essentials built in economy.
I have tried everything I can think of, and wish I could get it to work as yours actually has a custom message while being more up to date with CB versions.
Hope this might help.
@zempire2010mjk
It just worked for me using the latests builds of CB, Vault, and SimplePenalty. What versions are you running in specific? Can you post your config file?
trying to use this with newest CB and Vault and while it gives the message that the fee has been taken from your account it actually is not taking it away.
Suggestion:
Would be kind of cool to be able to adjust the amount deducted based on how the player died. For example, punishing them more for certain deaths than others. I don't like the idea of penalizing someone too much for dying in lava. Mainly because they probably just lost all of their items and hitting their account balance too seems like overkill to me. Just a thought.
@poonjab1_0
There probably is something out there, but SimplePenalty currently doesn't do that. I also have no current plans to add it, since it seems kind of frivolous. I don't think it would be that hard to implement, however. If you really need it, send me a message or e-mail and I'll try to do a custom mod to SimplePenalty that can do this.
@twisted067
Very strange... I looked at the code and I can't find anything that could be responsible for that behavior.
is there something like this where people are penalized life when they come back?
@BeastsMC
Well I didn't log any errors, but when I changed fixed-price: true and changed the death penalty message reloading didn't work, I had to restart server to take those changes. Not a big deal because these don't change very often lol. Other than that I don't see anything else wrong.
@twisted067
Posting an update. Although the fix was simple, I ran into other issues. So far, I've reworked a lot of the configuration code, but there are still some issues. Java is being picky and when I compile it, it doesn't want to run on my test server so I've had to resort to testing on my public server. I think I'm getting near completion, though, so I'll try to get a build uploaded soon.
EDIT: Just uploaded the new version. It should appear in the sidebar as soon as the bukkit dev team approves it. If you don't want to wait, you should be able to download it from http://dev.bukkit.org/server-mods/simplepenalty/files/9-simple-penalty-v1-6/ It should fix the bug, but tell me if you have any issues with it as I had quite a bit of trouble testing it.
@BeastsMC
awesome! looking forward to having this plugin back on my server
@twisted067
Thanks, pretty sure I figured out the issue. I'll start working on a fix right away.
@BeastsMC
I do, I also backed it up and deleted it and let the plugin create a new folder and config thinking it would fix them problem but it didn't, gave me the same error. Here is the old config: http://pastebin.com/fMFU9EvW
@twisted067
Do you happen to have the config.yml from that setup?
Got this error a few months back and never posted it, was updating server plugins and decided to see if this worked, still doesn't. Heres the error log: http://pastebin.com/zn9ZbyYh