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!
I am using this plugin with CombatTag. When a player logs out during combat, a clone fills their place with the same name/skin as the logger. When they die, they drop all of their items, but PVPReward is not picking up on the kill, resulting in the player "committing suicide" and losing their money, the attacker getting nothing. I want said attacker to get the reward.
Can you look into seeing if you can hook this plugin into CombatTag somehow? They are VERY useful together and I would hate to have them function as is. Thanks!
Biggest thing i would like to see is the ability to set to where people who are pvping.... dont lose money. Money stolen should only occur if the player is a bandit and killing innocents. Or the player is an innocent killing the bandit. two people who pvp willingly should not have to worry about losing money to each other.
I have an arena and people love it but they hate losing money.
I hope the system can pay money to the killer instead of stealing. I think the judgment in your plugin is incredible and I hope to deal with it with your plugin :D
@fisherman77
Thank you, I appreciate that. but keep in mind that the Bukkit team has a lot more people requesting things and cannot get to them all.
@saldarine
The reason I have it setup this way is so someone cannot avoid losing their money to another player by running into pve (someone is about to kill me so I jump off a cliff so they won't steal my money). If that is the kind of thing you are looking for then just set the combat time to 0. However, players will then be able to teleport or log out with no penalty.
@fisherman77
well the way it is suppose to work is... if player a and player b are both in pvp mode, no money is given.
if player a has not attacked player b and player b kills player a, no money is dropped
@codisimus I would prefer a setting i guess. There should be no reason why a mob counts as a pvp... that is pve
@Codisimus
Thank you! You are the kind of developer we need on Bukkit - you listen to what people really want. BTW, like your other plugins.
@Codisimus If it's any help, I reported this same issue to mcMMO: http://dev.bukkit.org/server-mods/mcmmo/files/28-mc-mmo-1-2-12/
So that's what you'll probably need to do. Thanks!
@fisherman77
A lot of people have been asking for this so I will add it to the next version. (as well as a cooldown so you cannot* spam this feature to get more money.)
Could you make it an option to where people kill other players, get money, but the other players (victims) do not lose any money? On a PVP server I like to encourage PVP, but it's really frustrating when one player steals everyone's money, because he has diamond armor.
@Crayder
I will make sure it double checks to make sure damage was dealt b4 registering it as PvP.
@saldarine
I am looking into the bows issue. As for the other thing, are you saying that you don't want it to count as a player kill if a mob happens to get the final blow?
@Codisimus
Tested today with newest build of bukkit, same thing. Bows do not count for anybody. We also tested something else!
› DMW: kk, one sec i'll explain it › DMW: yea, i don't think it's a problem we can fix › DMW: if a player is killed by a mob, they do not lose money › DMW: but if they were hit by a player › DMW: then killed by a mob within the "CombatTime" we set › DMW: it still counts towards a pvp kill
that is something my admin told me.
Very awesome plugin that I appreciate much.
I use the Factions plugin. With Factions, faction members cannot damage on another. However, when a faction member hits another faction member and that faction member then logs off, the player who hit them steals their money and gains karma, without every hurting them.
I'm not a plugin coder, but I think it's an issue of onEntityDamage, in PvPReward, not meshing well with other plugins. Anything you can do?
@FiddyCraft
This support all major permissions plugins, what are you using?
EDIT: I'm sorry, I forgot to remove the part in the main thread that said it only works with PermissionsEx
When will you start support for other permissions?
@saldarine
bows worked in the past, I will have to check to see what has changed.
@Nuinethir
in the Config file, set the following properties (Let me know if you have any questions):
I like the features in this plugin, but I want a simplified configuration. All I want is...
I am not really interested in a karma/outlaw system, so is there a way I can disable the rest of the features? Thanks much!
I have done some massive testing of this today and everything works, including with magic plugins, except for bows. Hope that is fixed so we can use it.
Why doesn't the outlaw group work ?
Glad to see this got ported. Going to add it back on our servers now!