Decapitation
Decapitation
Features
- Causes heads to drop when a player is killed by another player or when killed outright.
- A command to set the name of a head
- A command to spawn heads
- Right click on a head to view the name
- Causes broken heads to drop as an item with the correct name
- A bounty system
- Store bounties in a flat file or mysql
Commands
/setname [username]
- Sets the type of the head you are holding to a player head and sets the name to the one specified. Username is case sensitive./clearname
- Clears any name on the head./spawnhead [username] <quantity>
- Spawn the specified number of heads with the specified name. Username is case sensitive./bounty
search [username]
- search for a bounty on a playerlist <page>
- list current bountiesplace [username] [price]
- place a bounty on a player or add to an existing oneclaim
- claim the bounty of the head you are holdingremove [username]
- remove the bounty of a playerlistown
- list unclaimed bounties you have createdredeem
- claim any heads that are owed to you
Bounty System
The bounty system requires Vault, an economy plugin and optionally mysql. This bounty system is based on heads.
Example: Let's pretend that I have a grievance against a player named mbaxter, but I'm too lazy to find and kill him, so I decide to place a bounty on his head. I type /bounty place mbaxter 100
which creates a bounty for $100 against him. On this server, the tax rate is 5% so I pay $105. A bounty hunter, diego96 comes along and checks the active bounties with /bounty list
. He could use the cash so he decides to go after mbaxter. Diego tracks down mbaxter, killing him, and claiming his head. Diego now types /bounty claim
while holding the skull. The skull is whisked away to me (or stored for me to type /bounty redeem
at a later time if I am not online or my inventory is full) and Diego receives $100. The evil mbaxter has been slain, I receive his head, and Diego receives his $100.
Configuration
All percentage fields are in the range 0 to 1, where 0.1 = 10%
dropSkulls: allDeaths: 0 #Percentage chance that a player's skull will be dropped when they die. killedByPlayer: 1 #Percentage chance that a player's skull will be dropped when killed by another player placeInKillerInv: false #If set to true skulls will be placed directly in the inventory of the killing player when possible. If the player was not killed by a player this has no effect. If the killer's inventory is full, it will be dropped at the killer's feet. bounty: enabled: false #Enables the bounty system tax: .05 #Sets the tax on bounties. Players are charged this tax when creating or removing a bounty huntedDropOnly: false #If set to true, only players with bounties on their heads will drop heads. canClaimOwn: true #If set to false, players will not be able to turn in bounties on their own head. datastorage: yaml #This can be set to 'yaml' if you want to use a flatfile or 'mysql' if you want to use a database. database: #This section is only for people who are using mysql. url: jdbc:mysql://localhost:3306/database #Database connection string username: minecraft #Database username password: lolololol #Database password
- Setting both options to false disables heads dropping on player deaths and only allows the
/setname
command. - Use of the bounty system requires Vault, an economy plugin, and mysql.
- Remember that players claim bounties by turning in the head. If your head drop rate is set to 5%, that means that player will likely have to be killed a large number of times before the bounty can be claimed. Consider setting the drop rate to 100% if you are using the bounty system.
Permissions
decapitation.setname
- Access to/setname
.decapitation.clearname
- Access to/clearname
.decapitation.spawnhead
- Access to/spawnhead
children:
decapitation.setname: true
decapitation.dropheads
- Description: Ability to drop heads on death. Defaults to true.decapitation.collectheads
- Ability to collect heads when killing another player. Defaults to true.decapitation.info
- Get the name of a headdecapitation.bounty
- Place, claim, and search bounties bountieschildren:
decapitation.bounty.search
- Search bountiesdecapitation.bounty.list
- List bountiesdecapitation.bounty.place
- Place bountiesdecapitation.bounty.claim
- Claim (turn in) bountiesdecapitation.bounty.remove
- Remove own bountiesdecapitation.bounty.listown
- List own bounties
decapitation.bounty.viewissuer
- View who placed bounties when listing
@CeramicTitan
Interesting idea. I'll add it to my list.
@Absolutionmc
yes. running on server with 300+ very efficient. Can get FPS drops when hundreads of heads are in one small area though.
Is the plugin very CPU efficient for use on big servers?
Can you implement TagAPI? So that the players who do have a bounty on them have a red tag or a configurable color?
Sweet! we love this plugin.
New version up. Minor bugfix, minimum bounties, added extra arg to /spawnhead so they can be given to other players.
@Toxic__Waste
You get the bigger bounty.
@omgitsmit
Yes
Does this work in 1.5.1?
hows it work with multiple bounties when 2 different people start bounties on the same person like you kill that person who has a bounty do you get all bounties made on that person
@fatmarleys
looking for a dedicated system to it. The amount of economy this heads plugin creates on my server is amazing. Running 300 players I can't really have a simple cheapo' system. I might be able to contact another dev for it .
This is such an awesome plugin, and i recommend it to anyone who owns a PvP server, its vital! It defines my server, and definitely gets people on!
Thanks for the amazing plugin!
Will the current version work with 1.5?
@Recolance
If you use essentials and chestshop you can sell heads.
If you have a head (with a name) in your inventory, you can do /itemdb this will give you the item number and durability you have to use. Setup the chestshop using those, place the head inside and you can sell it. The chestshop sign will NOT display the name of the head, just that it is a head.
I place the head of the person beside the shop sign so they know. But beware, if you use lwc and magnet..and they drop the head near a chest, it will erase the meta data on the head.
Head Shop Idea: Players online my server "CraftGasm" have been using heads from donators / old members / powerful players / etc. Sort of as an economy system. Was wondering if you could create a chopping system regarding this. So players can place a head down for display, type /head shop <price>, right click the head and then everytime a player right clicks that head itll display that is is for sale, the name of the playerhead, and the price. They type /head buy, rightclick the head and purchase it. itll remove it from the ground and place it in their inventory.
Just an idea. Unless anyone has another system already available for selling these heads or making shops for them aswell.
Hey I was wondering if it would be at all possible to store more info in the player head's for when they are right clicked. For example, time it was made, how/who killed them, etc.
@PlantAssassin
It would be an alternative method of head acquisition for servers that have economies/stores setup but don't have (much) PvP, and would probably just add a command like "/head buy <mobtype|playername>", with prices set in the config, like so:
enableSelling:true
pricePlayerHead:100
priceSkeleton:50
priceWitherSkeleton:500
etc...
@Hangar
This plugin already requires vault for the bounty feature. Is there something more you are after?
@PlantAssassin
Is the Vault/economny integration still on the todo list? The PlayerHeads guy shot me down hard over the suggestion :/
@Warhawker
I would try to find a plugin that grants/revokes perms based on region.
Is there a way for this to be disabled in a defined region, I have a pvp minigame that is FLOODING with heads.