PvPReward
Version 1.9.0
NOTE: This plugin requires you have Vault enabled on your server
This plugin adds to PvP, in addition to any items that may be dropped, players also steal money from the players they kill. The amount stolen is configurable.
Money can also be taken from a Player when they die.
Features:
- Supports all major Economies and Permission Plugins thanks to Vault
- You can change what command this plugin uses by editing the plugin.yml (found inside the plugin jar file)
- MultiWorld support (Disable rewards and/or death tolls in specific Worlds)
- Configurable properties
- Custom messages
- KDR Leaderboard
- Several methods of determining amount of money lost/stolen (percent, flat rate, etc...)
- Add Players to a specific Permission Group if they kill too many other Players
- Option of having tombstones to hold items instead of players dropping items (Beta feature)
- Configurable combat time
- Optional penalties for logging or teleporting while in combat
- Broadcast when a Player Combat Logs
Permission Nodes:
- pvpreward.getreward = Needed to steal money from another Player
- pvpreward.givereward = Needed to have money stolen from you
- pvpreward.ignoredeathtoll = Do not pay Death Toll when you die
- pvpreward.reset = Needed to reset any Player's Kills/Deaths/Karma
Commands:
User Commands:
() indicates a required field.
If Player is not specified, then the command sender is used
- /pvp outlaws - Lists current Outlaws
- /pvp karma (Player) - Lists the Karma level of the specified Player
- /pvp kdr (Player) - Lists the Kill/Death ratio of the specified Player
- /pvp rank (Player) - Lists the KDR rank of the specified Player
- /pvp top (Amount) - Lists the top ranked KDRs
Admin Commands:
[] indicates a required field.
- /pvp reset - Lists the Admin reset commands
- /pvp reset kdr - Sets your kills and deaths to 0
- /pvp reset kdr [Player] - Sets the specified Player's kills and deaths to 0
- /pvp reset kdr all- Sets everyone's kills and deaths to 0
- /pvp reset karma - Sets your Karma Level to 0
- /pvp reset karma [Player] - Sets the specified Player's Karma Level to 0
- /pvp reset karma all- Sets everyone's Karma Level to 0
Karma Description:
Most of these setting are configurable
Picture + Written Description by riuthamus
Scene01:
Bob and Jacob have done nothing, all stats are base:
- KARMA POINTS: 0
- DROP PERCENT: 10%
- 500 COINS IN ACCOUNT
Scene02: Bob attacks and kills Jacbob, this will do the following things:
- Bob will gain 2 karma points
- Jacob will lose 1 karma point ( if he is at 0, it will stay at 0 )
- Bob's chance for drop of gold will be increased by a 2% modifier if his karma is less than 50
- If the chance for drop of coins from Jacob ( the killed ) is a success, a random value ( default range of 0%-5% ) will be taken from Jacob's bank account
Scene03: Bob has been bad, and has killed lots of people and now has 48 karma. He kills Jacob again, the following things occur.
- Bob will gain 2 karma points putting him over the 50 karma making him an outlaw
- Jacob will lose 1 karma point ( cannot go below 0 )
- Bob's chance for drop of gold will be increased to 100% since he is considered an ( outlaw ) and still gains +2 karma
- If the chance for drop of coins from Jacob ( the killed ) is a success, a random value (default range of 0%-5% ) will be taken from Jacob's bank account
Scene04: Jacob kills bob after bob has 52 karma, the following occurs:
- Bob will lose 1 point of karma taking him down to 51
- Bob is still an outlaw so he has 100% chance of drop of gold/coins
- Jacob WILL NOT earn karma points because he killed an outlaw
If the modifier is set to 20, whenever an outlaw kills a non-outlaw, he gets 20% more coin on top of the rewards he already would have gotten (if he successfully gets the drops in the first place). Likewise, if the modifier was set to 150, he'd get 150% more coin.
Now, more in-depth and complex mode: The modifier increases after certain karma thresholds. For example: You have set your options in the config file as follow: karmaThreshold: 10, outlawModifier: 2, modifierMax: 50
With this, every 10 karma after 50 (60, 70, 80, etc.) will grant the outlaw a 2% bonus to all drops stolen. After it reaches 50% extra drops stolen, it stops increasing (as based on the modifierMax variable). It seems complex, and it's probably not for everyone, but it'd be cool in my opinion.
(All of that is amount of coin stolen, not the rate at which they drop them, to make it clear!)
Tutorials:
Setup (Config settings):
RewardType may be any of the following:
- Karma
- FlatRate
- Range
- Percent
- PercentRange
- PercentKDR
All other settings depend on what the reward type is set to.
Karma:
This type has the most features, It is explained at the bottom of this page, the settings are as follows:
- Percent - The base percentage for calculating whether there will be a drop
- Amount - The amount of Karma needed to be considered an Outlaw
- High - The maximum percentage that could be taken from a killed players account
- Low - The minimum percentage that could be taken from a killed players account
- OutlawModifier - Outlaws steal an additional x%
- KarmaThreshold - Increase OutlawModifier every x kills
- ModifierMax - OutlawModifier will not go beyond x
FlatRate:
The Killer will always steal a specific amount from the killed, the settings are as follows:
- Amount - The amount of money that will be stolen upon each murder
- All other settings don't matter
Range:
The Killer will steal an amount of money within a given range, the settings are as follows:
- High - The maximum amount that could be taken from a killed players account
- Low - The minimum amount that could be taken from a killed players account
- All other settings don't matter
Percent:
The Killer will steal a certain percent of the killed players total balance, the settings are as follows:
- Percent - The percent of money that will be taken from a killed player account
- All other settings don't matter
PercentRange:
The Killer will steal a percent of money within a given range, the settings are as follows:
- High - The maximum percent that could be taken from a killed players account
- Low - The minimum percent that could be taken from a killed players account
- All other settings don't matter
PercentKDR:
The Killer will steal an percent of money based on the two players KDRs. You receive a higher percent from players with a higher KDR (formula is killedKDR/killerKDR). This percent is taken from the killed players total balance. No settings are used.
Video:
Coming soon!
Would love to see this maintained.. it is one of the most unique pvp addon plugins! I love the concept.
@ticotaco
You're right, I need that too to use as a donator perk
new plugin: Killermoney
PLEASE PLEASE PLEASE make it possible to change the amount given to certain ranks.
For example, current FlatRate is set to 50. However, people can purchase a "VIP" kit from my online store.
This allows them to receive double coins upon kill.
So with a kill, they will receive 100 coins
As i see the faction feature still hasnt been implemented.. what a shame the plugin is useless on a faction server
I get this error when I die from a Sentry NPC via the Citizens+Sentry plugin: http://pastebin.com/drptqFUw
It could be that PvPReward doesn't know how to handle "fake" players.
Instead of stealing money can't you add one that just gives them money?
It works fine for me
On my test server, it works fine, but on my main server, PvPReward does not work correctly. It will boot up, and then get stuck (maybe in a loop) and then fail to load, and crash my server. I don't know why, or what's causing it, there's no error, so I can't help you anymore than this.
Its a shame I had to disable it, I had a whole KDR leaderboard using your plugin's API. Its inactive till you fix it.
The plugin is broken in 1.5.1, please fix it! the plugin is awesome !
@feeg1
is anything broken in 1.5?
I would like an update as well just to be secured.
@shahiem99
The recommended build is 1.4.7
Hi,
Please update to Recommended build 1.5
@xColourTheory
Bukkit currently does not support colored names (yes ik there is a TagAPI out there) but with the 1.5 update, Bukkit will be able to add this. Then I can add colored name support.
Any colored name tag support?
i.e -100 karma = red name?
@ravand
That's the point of the flat charge.
Also, what's the point of a bank when the money isn't safe in there? If you really want people to lose cash, then force them to carry cash in their pocket. You could probably do that with banking limits (max amount of cash stored) or something along those lines. That's more of the server admin's issue than a plugin developer's issue.
But yeah, that IS the point. If I'm carrying around nothing, and I die, the Faction shouldn't lose anything except for a flat charge to the Faction. The idea is that, if I carried lots of money, died, and ended up detracting money from the Faction, they would kick me for being an idiot, OR I would learn to be more careful next time. If I remember to leave my cash at home before dying, the Faction only gets a small penalty and everything is fine.
If I die, and the Faction loses a percent of their assets regardless of what I carried around, that would be too extreme. From what I've interpreted from your suggestion, (correct me if I'm wrong) if a player dies, both the player AND the faction loses a percent of their total assets. And to be honest, the whole KDR thing seems a tad bit complicated.
(I don't use Factions but I'm considering it, so pardon me if I misunderstood what a "Faction Bank" is.)
@CommodoreAlpha
But that would mean if someone has 0$ in his pocket he will lose 0% and therefor the faction will lose 0% too
I can suggest a plausible alternative to the factions idea. Instead of it being pocket or bank, it could be pocket and bank. Basically, what would happen, is that the player gets a percentage of his/her cash stolen, and a configurable percentage of the lost amount could be charged to the bank account.
For example, Joe loses 10K from his pocket (not very smart). I could then make it so that the Factions bank account will lose a percentage of whatever Joe just lost out of his pocket. I could make it half, thus charging 5K to the Factions bank account.
...But for the simpler minded people, will it be possible to just have a flat charge to the faction's bank if a faction's player dies (in PvP)?
Also, could there be a "DeathStreakCap" that would prevent people from purposefully dying too much and bankrupting their faction? This would basically mean that, if a player dies "x" times in a row (from PvP) without killing anyone, the faction would stop receiving a penalty for that player's death until they kill another faction enemy. Yes, I know this is still exploitable, but this will help discourage traitors, and such traitors will be caught before too much financial damage could occur.
@Codisimus
If faction has more both should be taken. If pocket has more only pocket.
EDIT: Oh ye what you also can do is to prevent someone stealing all the money from the faction by letting another guy killing himself all the time: If the player has no power left the faction shouldn't be paying!