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
Would it be possible to add a command to know the playername of the hold head? or an automatic private chat line when holding a head?
We've added this plugin today and restarted it to access the config. Noticed there is no command to reload the plugin. Possible future addition?
Also, can't do a manual reload. If I try to, the config is reverted to what it was. If I shut the plugin down, make changes, and start the plugin again, it goes back. I am assuming I have to shut the server down to make changes???
@PlantAssassin
Thanks. I'll try the new version and try and reproduce. Great plugin by the way!
v0.2.1 has been submitted for approval. Highlights include bounty permissions separated out, a permission to view who placed a bounty, right clicking to find out the name of a head, and more options for controlling drops and bounties to reduce abuse.
@rauyran
1 means 100%, .5 means 50%, 0 means 0%
As for your bug, I cannot reproduce it. My plugin simply works by adding the head to the drops. Do you have another plugin that modifies drops that may be interacting?
Can you confirm the killedByPlayer value. Does 1 mean 1% or does it mean 100%?
Also, it seems that we get 100% drop rate if the killed player has a clear inventory and 0% drop rate if they are carrying something.
@xBladeM6x I'll look into it. Not sure if it's possible because heads breaking in water is a vanilla feature.
@qwert1517 No, existing heads will not be removed, damaged, or modified.
@PlantAssassin - Great plugin / idea!
Will updating this plugin cause the current heads that people have obtained through killing people to be damaged in some way or deleted?
Thanks in advance.
@PlantAssassin
I'm wondering if it's possible to make them unbreakable by water through plugins then. o-o
@HaxtorMoogle
The next version will contain an option to only have players with bounties drop heads and an option to prevent players from turning in their own heads. Turning off drops for non player kills will help prevent abuse, but sadly this is a fundamental flaw in all bounty systems. I play the MMO Eve Online, and even it has this problem for eight years now. They're going to fix it by making bounty payout based on the value of destroyed items, but since in minecraft items aren't destroyed on death, this isn't really an option. Maybe I'll write another bounty plugin that does this though.
@xBladeM6x
This is a bukkit bug.
People with a bounty can claim a bounty placed on themselves?
If a player has a bounty they shouldn't be allowed to pick up any heads?
What about heads only dropping from players with a bounty placed on them?
Ive noticed every player on my server collecting every ones heads so if there is a bounty they can claim it without actually killing the bounty person.
Placing a head in water breaks it, and turns it into a Wither Skeleton head.
@Darkhand81
Adding this in the next version.
@dunem666
Adding more perms in the next version
I second the idea of right clicking a head and getting something like: "The head of PlayerX". That way other players can browse your 'gallery' and know who they are. :)
should be able to see who set the bounty... in the list.. at least those with another perm anyway
@EncryptedCurse
ahh fair enough! :D you like the wanted wall tho?
@ginner159
It's not possible to make it case in-sensitive since it contacts the skin server. The capitalization needs to be exactly the same as the registered username or it's not going to work.
liking the sound of this will keep a look at it until a few more releases.
would you be able to make it case in-sensitive for player names and possibly be able to use signs or the new picture frame item to display make a wanted wall?
keep it up! the idea is ace!
Matt :D
great plugin,
please make a second permission for bounties.
decapitation.bounty.claim decapitation.bounty.place decapitation.bounty.seach
then servers with police can set the bounties for the public player who can claim it.