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
I don't know, I hope someone can update this if not.
Does this work for the latest version of bukkit?
@Dennild
Are the bounties changing?
Also, if you're using an economy system make sure you change the forcegoldecon setting is set to false or true depending on what economy type you are using.
It's also possible that you are seeing the message associated with changenobounty. Toggle that to see if the error goes away.
When people get killed the bounty dont get paid out? plz help me fix this all the perms is setup and it even say that 0 money have been paid
@Yourdogsdead
Again.. Thank you so much ! :)
Could you also go into more detail about not working? What exactly is not working about it. I will be working on this shortly.
I haven't updated it because I thought it still worked. I also want to work on being able to use doubles. I will take a look at this ASAP and report back. Terribly sorry.
So how is this holding up?
I dont think its working atm?
Maybe im just doing something wrong though...
Latest bukkit dev,
@Yourdogsdead
That's okay. Good luck :)
@nhoclesnar
I plan on working on it later this week. Sorry for the delay.
How is it going? If you need tester, I'm willing to test out any of your dev builds :)
@Yourdogsdead
Awesome. I can't wait for the next version :D
@nhoclesnar
I can add more options and permissions. I will probably make the min and max bounties options as well as well as gaining or losing bounty modifications.
@Switch0r
Yes, I'm using it on 1.4.2 and it's 'safe' :)
@Yourdogsdead
Can you add one more option or permission; a player will only gain communal bounty upon killing a player who has no bounty, and killing a player who has a bounty on his head will gain you no bounty? Also, a minimum bounty option would be helpful to prevent stupid $0.1 or $1 bounty. Many people on my server demands this, and it seems like this would stop the whole cycle of respawn and revenge :)
Nice plugin, is it save to use for 1.4.2?
@Yourdogsdead
Actually, that was the only problem I encountered. I typed 'several' because my server became so messy and many side-effects appeared. There is actually no other problem directly caused by this plugin. Thank you again :)
@nhoclesnar
That was an oversight by me. I will add the ability to toggle off certain bounty types as well as being able to pay off your own bounty if wanted. Permissions will also be updated. You mentioned that there were several problems that you encountered, are there any more that I can help with?
I will be updating it to 1.4 in a couple of days.
The plugin is running great, I love it. However, I encounter several problems.
First, I want to say that the idea of communal bounty is really cool. However, it just led my server into an endless loop of killing. My server is now a butcher ground. This is how it started. One player kill another player for revenge. He immediately receive a communal bounty on his head. The stronger ones then chase him and kill him to get the reward. After that, several players ganged up to kill those stronger ones. Then the cycle started again. My server can now become butcher craft. I want to solve this problem.
Can you please add a command to pay your communal bounty, so that massacre won't occur again? '/cbounty pay' would be perfect! In addition, a permission to not get communal bounty when killing people would help a lot.
@Yourdogsdead
Working perfectly even in 1.4.2, thanks :D