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

  1. First, enable SQL in the configuration and reload the plugin (/reload or /bountyreload)
  2. Type in /convertdb and it should show you a message saying it was successful.
  3. Verify information by issuing a /blist.

To convert to flatfile

  1. Disable SQL in the configuration and reload the plugin (/reload or /bountyreload)
  2. Make sure that the flat file does not exists. Delete it from the /simplebounty folder if needed.
  3. Type in convertdb and it should show you a message saying it was successful.
  4. 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


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit