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
Any chance of adding a broadcast message when a bounty is placed?
nice plugin :)
but now, i need translation file please (like language.yml) :)
There have been some CB changes where they refactored all the package names. Those running the latest versions may have class not found errors. I will release an update soon.
Your plug in doesn't work with this one if we set it so that players keep their inventories:
http://dev.bukkit.org/server-mods/deathcontrol/
Even if we have death control set to drop 80 percent of its items, No one drops their heads
sad face
@qwert1517
This is a worldguard/bukkit issue. Likely neither knows what to do with the tags.
@xBladeM6x
I could never do that on my server. I have about 36,000 records in my ban table.
When using the command /stack (.illegal) WorldGuard with this plugin, it will stack different heads into the same type of head. For example, I have...
2 qwert15 heads and 3 qwert14 heads
/stack..
5 qwert14 heads.
Just thought I'd let you know.
@LordKainzo
I don't seem to run into this bug at all. Odd.
@PlantAssassin
You may be proud of this use of your plugin. I made a graveyard of all the banned players in my server. Heads Included.
http://i847.photobucket.com/albums/ab39/xBladeM6x/2012-11-30_161634.png
http://i847.photobucket.com/albums/ab39/xBladeM6x/2012-11-30_161648.png
@Felix06
This^ I think it may be a bukkit issue.
Version 0.2.3 has been uploaded for approval. It fixes three major bugs. Heads not being removed when claimed, heads not being set as properly redeemed on yaml, and non positive bounties.
@Felix06
Are you using Orebfuscator by any chance? I believe that it interferes with sending the right data to clients.
@LlmDl
This was just reported on my server, I am now looking into it.
@PlantAssassin Anyone had players not lose the head when they redeem a bounty? I'm running Decapitation 0.2.2 and CB 2495 (1.4.5R0.3)
Often when I place heads they will turn into Skeleton heads for others. How do I fix this?
@Warhawker
I cannot reproduce this issue with either mysql or the flatfile, that should make no difference anyway.
Bug: on 1.4.5, players cannot claim bounties on heads.
Return text when executing command is as such: There does not appear to be a bounty on that head.
there is a bounty of 50 currency on it. Must I use SQL for it to work? Im currently on flatfile.
Good news, the skulls breaking under water thing was just fixed, so that should be in the next CB build.
@Hangar
Hmm, that's not a bad idea at all. I'll add it to my to-do list.
It would be nice if we could somehow sell these heads (esp. on non-PvP servers) by having it integrate with economy plugins via Vault. I'm not sure ChestShop will work if I put these inside but if you know of another way I can let people buy their heads let me know. Thanks :)
I just uploaded version 0.2.2. This removes the head drop code which is now unnecessary because drops were fixed in vanilla. I think it also caused heads to fly unnecessarily far when broken. If you are going to keep running 1.4.2 you should not update.
@HaxtorMoogle I hang out in #bukkitdev with the nick Eviltechie. I am hesitant to fix the issue though because it's only a matter of time before bukkit fixes their bug, and my code may introduce a new bug when that happens.
Please continue development! My Players really enjoy the bounty system! I have a code patch that will stop the heads from being placed in water stopping the head change glitch. Do you hang out in any of the bukkit irc chats?
The known issue can be work around. I don't know how, but the dev @ http://dev.bukkit.org/server-mods/head-drops/ does ;-)
Thanks for the plugin!