SimpleBounty
Requires Vault for permissions and economy
If you are upgrading from 1.4, please download the new config file here.
A simple plugin that allows the user to place bounties on players.
Supports Permissions, Economy and MySQL.
There are two types of bounties:
1 - Communal Bounty: A bounty placed by the server on players. When a player is killed, there bounty is given to the player and it decreases by a set amount. The killer's bounty is increased by a set amount as well.
2 - User Placed Bounty: A bounty that is placed by a user. User is allowed to place as many bounties as they want, but they must have the gold in their inventory at a given time.
Commands are simple:
/bounty <bounty type> <playername> : List the bounty (Communal + User Placed) for the player name given. If used without any arguments, it gives your bounty. You can specify the bounty type. Either communal (c) or player set (ps).
/bountylist : Lists the top ten bounties on the server
/placebounty <playername> <amount> : Places a bounty on the player for the amount stated
/setcbounty <playername> <amount>: Sets the users communal bounty
/setpsbounty <playername> <amount> : Sets the users player set bounty
/addcbounty <username> <amount>: Adds to the users communal bounty
/addpsbounty <playername> <amount> : Adds to the users player set bounty
/bountyreload: Reloads the Plugin
/bountyinfo: Gives the current version of SimpleBounty
/convertdb: Converts between mySQL and flatfiles and vice versa
/bountyload: Loads from the configured save system.
/paybounty <ps || c> <amount>: Allows a user to pay of their bounty.
Permissions:
- bounty.* - Gives access to all non-administrative commands.
- bounty.bounty
- bounty.bountylist
- bounty.placebounty
- bounty.paybounty
- bounty.admin.* - Gives access to admin commands
- bounty.admin.setcbounty
- bounty.admin.setpsbounty
- bounty.admin.addcbounty
- bounty.admin.addpsbounty
- bounty.admin.reloadbounty
- bounty.admin.bountyinfo
- bounty.admin.convertdb
- bounty.admin.bountyload
Configuration:
communalbounty:
enable: - Enables or disables communal bounties
increment: - How much a player's bounty should increase when they kill someone
decrement: - How much a player's bounty should decrease when they are killer.
changenobounty: If true, a player's bounty will change only if the person they killed has no bounty.
psbounty:
enable: -Enables or disables player set bounties (true or false)
min: -The minimum allowable bounty (Integer)
max: -The maximum allowable bounty (Integer)
showvictimmessages: -Enables or disables a victim's message when they are killed. (true or false)
showkillermessages: -Enables or disables a killer's message when they kill. (true of false)
forcegoldecon: -Forces the use of an economy that uses gold ignots. (true or false)
mySQL:
enabled: -Enables or disables MySQL. (true or false)
host: '' -
port: ''
database: ''
username: ''
password: ''
A note about the forcegoldecon setting. If it's true, the use of gold ignots for currency will be enforced regardless if you have an economy mod
A note about the changenobounty setting. If true, the killer's bounty will not change if they kill someone with a bounty on their head. The logic for this is that a bounty hunter is not punished for getting a bounty. They still get the money for killing the player. If false, both bounties change.
To convert to MySQL
- First, enable SQL in the configuration and reload the plugin (/reload or /bountyreload)
- Type in /convertdb and it should show you a message saying it was successful.
- Verify information by issuing a /blist.
To convert to flatfile
- Disable SQL in the configuration and reload the plugin (/reload or /bountyreload)
- Make sure that the flat file does not exists. Delete it from the /simplebounty folder if needed.
- Type in convertdb and it should show you a message saying it was successful.
- Verify information by issuing a /blist
This plugin currently only supports integers as the monetary value. Please use whole numbers only. This will be changed in the future
@nhoclesnar
Bugs should be fixed. The plugins should be approved soon.
@Yourdogsdead
Thanks for replying. I posted my config and gave you more details in the ticket comment.
@nhoclesnar Can you please post your configuration file as well? I will look into it right away.
I created tickets.
Yay, finally found a bounty plugin that works! One error when stopping server tho, link. Plus, the /placebounty command isn't working.
@Serilum
It's planned in the future. Probably the next update later this week, early next week.
Is it possible to have this with Economy support? Don't want to use gold but cash ;)
I originally built it under Java 7. I will rebuild it with java 1.6 and hopefully that will fix your error.
@mrcashking228
Do you have Java 6 or 7? If you have 6, you need to have 7 for this plugin.
Here is the error I get when I start up my server:
10:57:36 [SEVERE] Could not load 'plugins/SimpleBounty.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/wnt2bsleepin/simplebounty/SimpleBounty : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:223) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:199) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:377) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedClassVersionError: com/wnt2bsleepin/simplebounty/SimpleBounty : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143) ... 9 more
@RogueMeistaJones
What isn't working about it exactly? I will be glad to help in any way that I can .
this isn't working