BloodMoney (OLD)
BloodMoney
This is a simple plugin that allows players to earn economy money for killing other players.
This project has reloacated. Go here for the newest version.
Requirements
- Vault
- An economy plugin (Essentials, CraftConomy, etc.)
- A permissions plugin(PermissionsEx, bPermissions, etc.)
Install
- Grab Vault, your economy plugin and your permissions plugin and put then in your server's plugins directory
- Place the BloodMoney plugin in the same directory
- Configure to your liking!
How to configure
Plugin config
bloodmoney: ranks: newbie: gain: 25.0 loss: 10.0 member: gain 50.0 loss: 5.0 staff: gain: 100.0 loss: 0.0 customPrefix: "&6[&4Blood&cMoney&6]" sendMessageToDeadPlayer: true killMessage: You have recieved %m for killing %p deathMessage: You were killed by %p and received %m loseMoneyOnDeath: true
- bloodmoney: The root of all BloodMoney configuration entries. Do not remove!
- ranks: Each rank that the BloodMoney plugin has. All sub-entries of ranks are completely customizable (newbie, member, staff are only sample values)
- Sub-entries of ranks: The amount of money that the rank gets for killing players. "gain" is the amount they get for killing players, and "loss" is the amount they lose for dying.
- customPrefix: The message that is prefixed to any chat message from the plugin. Supports colour codes. Make sure to keep the entire prefix in quotations, they are important. If you remove them, you will get an exception in your server on startup and the prefix will be "null".
- sendMessageToDeadPlayer: true if you want to send a message to the killed player, false otherwise
- killMessage: The message sent to players when they kill someone. %m = the amount of money given, %p = the player that was killed
- deathMessage: The message sent to players when they get killed. %p = the player that killed you. This message is not sent if sendMessageToDeadPlayer is set to false.
- loseMoneyOnDeath: If set to true, players lose money when they die. Can be bypassed for certain ranks by setting "loss" to 0.0.
Permissions
- bloodmoney.admin: Grants access to admin commands
- bloodmoney.rank.<groupName>: Sets the amount of money that the player gets and loses. <groupName> corresponds to a sub-entry of ranks in the config.
Commands
- /bmreloadconfig: Reloads the plugin configuration. Only available to people with the bloodmoney.admin permission.
Source
This project is licensed under the MIT Licence which can be found here. The source can be found in my GitHub repo here.
Credits
- joshy939 for requesting this plugin to be made (http://bukkit.org/threads/give-money-on-kill-different-ammounts-per-rank.386404/)
- avataracid for the plugin's icon
Could you make the custom messages support color codes, too?
Hi... It doesnt work in 1.11.2
@xMaqiik
If you were the guy that made that PR, I merged it. I'm putting an updated version up now.
Think you can update it so you don't get money for killing yourself? That would be great, starting up a kit pvp server of mine and 1 of my friends found out you can get money for killing yourself with a bow.
@psirusa
I don't feel that it really fits in with this plugin. Maybe another plugin will have what you need.
I have a feature request :) Please add the option to ban/run a command if their balance reaches a configurable negative threshold. The idea is to: a.) Stop farming of less-skilled players. b.) Provide a lives system based on economy.
Scire Scivium, -Psi
@avataracid Heheh :P
Also, I'm about to start work on a pretty big new feature, so if anyone knows any bugs, drop me a PM on BukkitDev and I'll get them fixed next release.
Nice change in 1.2.0 with the custom prefix!!
Version v1.1.1 is now out, with a fix for the NPE's caused by players dying of non-pvp related causes.
@avataracid
Ah, I see. Doesn't it do that already? Usually there's a configuration option in economy plugins to allow over-withdraws, so I'm thinking it might be disabled for you.
@JjStAr992_Gaming
With the negatives... I think we misunderstand each other.
Player B has $0. Player A kills Player B. The loss assigned to Player B is $100. Player B loses no money because Player B has no money.
I would like to see your plugin force the player into a negative balance. If I go in and use CraftConomy3 to take $100 from Player B, it will put him into the negative with -$100.
Apparently in the plugin's latest version as of now (v1.0.1), the plugin just doesn't credit/remove from you if you supply a negative amount. It also fails gracefully (no stacktrace), so I don't really need to change anything.
@avataracid
There's already %m for that. %m works for both kill and death messages.
@JjStAr992_Gaming
Yes, simply just a way to let the person who was killed how much they lost on the death message.
@avataracid
I'm not really sure what you're suggesting with the first idea. Are you saying something like the amount of money the dead player lost in the killing players message?
As for giving negative credit, the Vault API definitely seems to have a big warning saying "DO NOT USE NEGATIVE AMOUNTS!" I should probably add a check for that, just so that the plugin doesn't crash and burn due to misconfiguration :P
Great addition in 1.1.0, this might help cut down on fake/stacked kills. Could you now add a %l variable so we can notify the losing party in the deathMessage as to how much money they lost based on loss: ?
Also along those lines, is it possible to give negative credit? If I kill someone with 0 money, I will get BloodMoney reward, but the person who was killed will not have a loss into the negative value.
Thanks for listening! Great plugin!
Version 1.1.0 is now out! This version implements a toggleable option to lose money on death (requested by @AgoniaMc).
@AgoniaMc
That's not a bad idea. I'll see what I can do. It'll definitely be toggleable in the config, as I can see that servers might not want this.
This is almost what im looking for! Is there anyway you could do so you get a configured amount of % of the money from a player when you kill him. Exampel: You killed: ''Jeb_ '' and got 10% of the players money. When killing him, he loses 10% of the money aswell.
Messages: You found (money) in the (playername) pocket. You were killed by (player) and lost (money)