PvPBounty
PvPBounty
Notice: If you are upgrading from V3 to V4, please delete your config so it can generate a new one!!
Ever wanted to assign a bounty on your enemy and pay someone to take him on instead of you, while you sit peacefully in your base and do stuff? Now you can! PvPBounty allows you to do so. For another example, say you got raided on a pvp server, and want revenge on the person who raided you... Assign a bounty to them and then you may entice other users to come murder them for you! :D
Most recent version: Here!
All that aside
PvPBounty is meant to be a PvP oriented bounty system. It runs off both -MySQL- and flatfile, depending on what your preference is.It's main purpose is so that users can post bounties over other user's heads in order to get more people active in pvp and finding others. The bounty system works in this way: A user (whom has permission to post bounties) may post a bounty over another users head. Now at this point, there is an option based on your configuration. You can make it so that users either have to accept bounties to get the reward, or make it so that anyone who kills the person can get the bounty. There are also configurable messages for bounty Assigning and when a bounty is payed out. You can also set the min and max bounties.
Configuration
There is a main configuration file in the plugin's data folder, config.yml.
There are many configuration options, such as the following:
acceptbounty
This says whether or not users will have to accept bounties in order for them to be payed when the bounty's target is killed.
canstackbounties
This is whether or not bounties can stack after a first one over a person is assigned. If they can't, then if a user tries to set a bounty over someone who already has a bounty over their head, they will get a message telling them to wait till the current bounty is payed off.
bam (Bounty assign message) & bountypaymessage
These both have to do with the type of message that gets put out to the server when a bounty is assigned, and when a bounty is payed.
Read the configuration file for more information on this.
canmultikillbounty
This allows users to set diff amounts of people to be killed per bounty.
- This is going to be added in a later release, as it will take some decent recoding of the way this works.
Min/max bounty
These allow you to set a minimum bounty and a max bounty. if you set the maxbounty to -1, it will be considered the highest number possible in java.
DeathPayoutEnabled & DeathPayoutPercent
Death payout has to do with a bit of a user's money being taken upon their death. EG The DeathPayoutPercent is set to 7. That means whenever someone is killed, the person killing them gets 7% of the dieing person's money.
BountyAcceptanceFeeEnabled/Increment
These are in now, they allow for making it so that users can't accept too many bounties and have to pay portions of the bounty to accept them after having so many.
DeathPayoutMessageEnabled
This says whether or not users will be told that they lost/get money upon the death of themselves or someone else.
TrackingEnabled & TrackingFee & Tracking-radius
Assuming you give the users permission to track people they have a bounty on, this is the stuff related to it. The first is self-explanatory, the second is the fee required to track a person, and the tracking-radius is the radius at which tracking stops working if the tracker is within the radius of the target.
Broadcasting-enabled & broadcast-interval
This allows the plugin to broadcast messages about a random bounty every x amount of time. The default is set to 5 minutes. The interval is the # of seconds between each broadcast.
The rest of the configurations are doing with -sql- & factions if it is had. You can read more about them in the yml file.
NOTICE: Do not enable sql support at this point. It is still extremely buggy and chances are it won't work. I will work on getting this working in the coming days. For now, just keep all of the sql stuff as it is by default.
Perimissions
There are currently 3 permissions:
pvpbounty.bountyassign - Gives users the ability to assign a bounty
pvpbounty.bountylist - Gives users the ability to look into the bounty list
pvpbounty.bountyaccept - Gives users the ability to accept bounties
pvpbounty.remove - allows the user with the permission to remove bounties
pvpbounty.track - allows users to track someone that they have a bounty on
pvpbounty.bountynotice - For admins to see when a user is spamming bounties
Commands
/bountyassign [playername] [amount] - this allows you to assign bounties to a person
Aliases: assign, assignbounty
/acceptbounty [person] - allows you to accept a person's bounty
Aliases: accept, bountyaccept
/bountylist [page] - allows you to see the bounties
Aliases: blist
/remove
/bounty - shows all the bounty commands.
Dependencies
This plugin only has 1 dependency which may be done away with soon: Vault
That's all
Leave any comments and suggestions in the comments please =).. if you have a issue, please put a ticket about it: http://dev.bukkit.org/server-mods/pvpbounty/tickets/ !
@JadenElite
I can't fix it unless you give me a stack trace. Also, you haev to ACCEPT the bounty if you have the option enabled in the config.
When someone assigns a bounty and then someone kills that person, the killer does not get the BOUNTY REWARD. Please fix this error. Does not remove them off the list either.
hm, i want to download 2.0, but always get 1.5 ?
And this will not start...
2012-08-14 21:39:37 [SEVERE] Error occurred while enabling PvPBounty v1.5 (Is it up to date?) java.lang.NoClassDefFoundError: com/massivecraft/factions/P at pvpbounty.PvPBounty.setupFactApi(PvPBounty.java:209) at pvpbounty.PvPBounty.onEnable(PvPBounty.java:96) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassNotFoundException: com.massivecraft.factions.P at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 13 more
I'm having a small problem. Whenever I try assigning a bounty on someone, it says the bounty is lower than the minimum specified in the config when in the config it is 1, and the price i'm assigning is 500. Please help
Awesome plugin! Downloading and installing. Keep up the good work :D
@watarimon
Check to make sure there is a accepted.yml that and that first line reads 'accepted:' No spaces no nothing.
Trying latest version:
Placing a bounty works, /bountylist works but /acceptbounty still doesn't work for me :(
@Gemil01
I think I fixed your errors =)
Hi, i got this errors (using latest build): http://pastebin.com/pB1wFB59
look like there is one undocumented dependency with the "War" Plugin
@watarimon
See if you can find any text not labeled by the plugin above or below it. That is the debug text i put in.
@VoidWhisperer
/acceptbounty mike123123 gives:
2012-08-03 13:02:23 [SEVERE] at pvpbounty.listeners.PBacceptbountyexecutor.onCommand(PBacceptbountyexecutor.java:114)
2012-08-03 13:02:23 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
2012-08-03 13:02:23 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
2012-08-03 13:02:23 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:484)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:811)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:771)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:754)
2012-08-03 13:02:23 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:246)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:102)
2012-08-03 13:02:23 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:82)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:559)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:451)
2012-08-03 13:02:23 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
@watarimon
Added a new debug jar, please get it and copy and paste the output after using it :D
@VoidWhisperer
Still the same error :(
@watarimon
try changing the Accepted to accepted: (all lowercase(
I created accepted.yml with Accepted: inside and restarted the server. I tried /acceptbounty mike123123 and got nothing ingame and this in serverconsole:
2012-08-01 08:17:08 [SEVERE] at pvpbounty.util.AcceptedData.getAcceptedAmnt(AcceptedData.java:65)
2012-08-01 08:17:08 [SEVERE] at pvpbounty.util.BountyUtils.getBountyFee(BountyUtils.java:6)
2012-08-01 08:17:08 [SEVERE] at pvpbounty.listeners.PBacceptbountyexecutor.onCommand(PBacceptbountyexecutor.java:114)
2012-08-01 08:17:08 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
2012-08-01 08:17:08 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
2012-08-01 08:17:08 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:484)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:811)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:771)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:754)
2012-08-01 08:17:08 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:246)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:102)
2012-08-01 08:17:08 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:82)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:559)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:451)
2012-08-01 08:17:08 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
@watarimon
Odd. it should've generated it. Create a 'accepted.yml' file and put this at the top line of it: 'Accepted:' then save it, then you should be good to go :D
@VoidWhisperer
No, I don't have that file in my folder.
@watarimon
Is the file in the PvPBounty folder 'accepted.yml' there? and if so, is the thing on the first line 'accepted'?
@VoidWhisperer
I closed down the server removing all old files and folder regarding PVPBounty. installed 1.5debug and started the server.
Here is a pastebin from starting the server.
I placed a bounty on mike123123's head (whick now worked, didn't before...)
First error message is when I tried to accept the bounty and the second when another player tried to accept the same bounty.
http://pastebin.com/9qMKpB66
@watarimon
I uploaded the debug version. it should allow you to get the stack traces of the errors, and with that i might be able to fix them :)