Player Heads

Spiked Heads

Ever PVP someone and get no good loot? Feel like you deserve a trophy for your victory? Then PlayerHeads is right for you! You can now lop off enemies heads in battle, and mount it on a pole for all to fear. Or wear your opponent's face as a mask, like camouflage!

Installation

Place PlayerHeads.jar in your plugins folder, on server start the configuration will be generated.
If you can't be bothered to read the rest of this page, then just watch this video by OfficialK4G:

Portuguese video: http://youtu.be/OqhI_oIGPWo
German video: http://youtu.be/ijEws5yjo6Y

Try It

Server: mc.inCRAFTion.com
Website: inCRAFTion.com

Configuration

ConfigDefaultRangesDescription
pkonlytrue[true/false]When true trophies only drop when a player kills another player (as opposed to self drowning, etc)
droprate0.05[0.0 -> 1.0]Chance that a trophy will drop when a player dies (1 is 100%, 0 is never)
lootingrate0.2[0.0 -> 1.0]Increases all droprates by lootingrate percent per looting level when a enchanted weapon is used
mobpkonlytrue[true/false]When true mob trophies only drop when a player kills the mob (as opposed to a lava blade or fall death)
creeperdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when a creeper dies
zombiedroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a zombie dies
skeletondroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a skeleton dies
witherdroprate0.025[0.0 -> 1.0]Chance that a mob trophy will drop when a wither skeleton dies
spiderdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a spider dies
endermandroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when an enderman dies
blazedroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a blaze dies
horsedroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a horse dies
squiddroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when a squid dies
silverfishdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when a silverfish dies
enderdragondroprate0.05[0.0 -> 1.0]Chance that a mob trophy will drop when an ender dragon dies
slimedroprate0.001[0.0 -> 1.0]Chance that a mob trophy will drop when a slime dies
irongolemdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when an iron golem dies
mushroomcowdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a mushroom cow dies
batdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when a bat dies
pigzombiedroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a pig zombie dies
snowmandroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a snowman dies
ghastdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when a ghast dies
pigdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a pig dies
villagerdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a villager dies
sheepdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a sheep dies
cowdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a cow dies
chickendroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a chicken dies
ocelotdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when an ocelot dies
witchdroprate0.005[0.0 -> 1.0]Chance that a mob trophy will drop when a witch dies
magmacubedroprate0.001[0.0 -> 1.0]Chance that a mob trophy will drop when a magma cube dies
wolfdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a wolf dies
cavespiderdroprate0.002[0.0 -> 1.0]Chance that a mob trophy will drop when a cave spider dies
fixcasetrue[true/false]When spawning/renaming heads, will attempt to make the input case insensitive
updatechecktrue[true/false]Checks for update on startup and messages admins a link to download the next version
broadcasttrue[true/false]Sends a global message when someone gets beheaded
broadcastrange0[positive int]Radial distance in meters in which other players will hear the broadcast message (0 is unlimited)
antideathchestfalse[true/false]Do not allow other plugins to fiddle with dropping player heads, makes certain they drop on the ground
dropboringplayerheadsfalse[true/false]Drop plain heads when a player dies, instead of the player's head

Commands

/PlayerHeads (alias /ph)
/ph config <set/get/reload> [variable] [value] — adjust config values in-game, or reload changes from disk
/ph spawn [headname] [playername] [amount] — spawn your own head, or one of any other headname, or a mob head with #mobname, optionally for another player
/ph rename [headname] — renames the head you're holding

All commands default to OP, but also have permissions.

Permissions

NodeDefaultDescription
playerheads.config.getopread-only access to configs
playerheads.config.setopcan edit configs or reload from disk
playerheads.spawnopcan spawn any playername head for self
playerheads.spawn.ownopcan spawn only your own head for self
playerheads.spawn.forotheropcan spawn any playername head into someone elses inventory
playerheads.renameopcan rename head in hand
playerheads.canbeheadtruecan lop of someone elses head
playerheads.canloseheadtruecan have his head lopped off
playerheads.canbeheadmobtruecan remove heads from mobs
playerheads.updateopwhen update available, can view notice and manually update
playerheads.alwaysbeheadfalseIgnore drop rate for player heads and drop 100% of the time
playerheads.alwaysbeheadmobfalseIgnore drop rate for mob heads and drop 100% of the time
playerheads.clickinfofalseWhen a player head is clicked the player name will be displayed

Notes

  • Join us on irc at: irc://esper.net/PlayerHeads
  • If you want more mobs supported send me 1 MC giftcode per mob type, or transfer an old/unused account to me.
  • PlayerHeads is now translatable! Edit "lang.properties" to whatever phrases you desire.
  • lang files will change between releases, when updating be sure to delete the old file if you haven't edited it.
  • If you've given people the * permission node, they will get 100% drop rates. If you don't want this to happen, also give them the negative nodes: -playerheads.alwaysbehead and -playerheads.alwaysbeheadmob
  • If you want to disable head drops in a specific world, use your permission plugin to add the following negative nodes for that specific world: -playerheads.canbehead and -playerheads.canbeheadmob
  • Spawn mob heads with the following names: #creeper #zombie #skeleton #wither #spider #enderman #blaze #horse #squid #silverfish #enderdragon #slime #irongolem #mushroomcow #bat #pigzombie #snowman #ghast #pig #villager #sheep #cow #chicken #ocelot #witch #magmacube #wolf #cavespider

TODO / Known bugs

  • Renamed heads (with an anvil) don't stay renamed after placing and mining them.
  • If custom mob heads get destroyed from flowing water they will temporarily loose their custom display title.
  • "lang_[language]_[country]_[variant].properties" don't seem to work, for now just use the file name "lang.properties"

Dev Builds

Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://ci.md-5.net/job/PlayerHeads/

Sourcecode

I've included the .java files inside every jar download, or access it via github:
https://github.com/meiskam/PlayerHeads

Changelog

3.9
  • Changed clickinfo from a config option to a permission
  • Ignore cancelled skull click events
  • Compiling against Spigot now (build 1649 patched with 20141001a)
  • Updated custom mob head: wolf
3.8
  • Fixed updater
3.7
  • Updated custom mob heads: ghast, sheep (Thanks Marc Watson)
  • Fixed spawn command to check for the correct permission when you type your own playername in.
  • Updated to Updater 2.0
  • Updated custom mob head: silverfish (Thanks XlexerX)

Donate

Donate

Stats

MCStats Plugin Metrics for Player Heads
Jacekk Download Stats for Player Heads

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of jessefjxm jessefjxm Nov 23, 2014 at 01:49 UTC - 0 likes

    <<reply 2400245>>

    Err.. will it be more efficient if the plugin only block water bucket Interactions while there's a head on its way? This seem to be the only way to destroy the head that already protected by LWC :)

    为什么Bukkit没有显示用户国籍的功能呢~

  • Avatar of meiskam meiskam Nov 22, 2014 at 22:05 UTC - 0 likes

    @jessefjxm: Go

    It would be resource intensive, and probably make lag .. but yes, it would be possible to make something like that.

    Last edited Nov 22, 2014 by meiskam

    BFAK:meiskam,74919,2d6c5de1b19d7aabc1fb74542e178ac033f9e170a90b33ea1616af55a9476d26

  • Avatar of jessefjxm jessefjxm Nov 22, 2014 at 06:54 UTC - 0 likes

    It is possible to prevent skulls from being destroyed by water? That's one of the most annoying things in my server :(

  • Avatar of meiskam meiskam Nov 21, 2014 at 18:26 UTC - 0 likes

    @broluigi: Go

    As far as I'm aware, It's currently working. If not, please submit a fully detailed bug report including:

    Quote:

    What server version are you using? Is it an online or offline("cracked") server? Are you using bungee? What playerheads version? Do any of the mob heads work (/ph spawn #cow)? Were you using a 1.7 or 1.8 client?

    along with a description of the exact issue

  • Avatar of broluigi broluigi Nov 21, 2014 at 17:22 UTC - 0 likes

    will this update to fix heads?

    TownyMc

    Website: lorecase.org

  • Avatar of meiskam meiskam Nov 12, 2014 at 23:12 UTC - 0 likes

    @raton023: Go

    droprate * (1+(lootingrate * enchantmentlevel))
    0.002 * (1+(0.2 * 3)) = 0.0032 = 0.32% = 1 in 312.5

    it's calculated with a semirandom number on each death, pure probability

    @xtzstud: Go

    Interesting, I've never seen that one before. The new switch to UUIDs is causing tons of havoc with this plugin, especially because Bukkit didn't implement a full API for UUIDs with Skulls before Bukkit died. This problem may be showing itself because of the Cauldon server, but the error was on my part .. I didn't read the documentation of a function well enough.

    If you would, try this build: http://www.shininet.org/minecraft/bukkit/playerheads/3.10-SNAPSHOT/c7291d8/PlayerHeads.jar

    Hopefully that makes spawning work .. but more likely it'll just make the error go away, and still won't spawn what you're looking for .. here's to hoping!

    Last edited Nov 12, 2014 by meiskam
  • Avatar of raton023 raton023 Nov 12, 2014 at 04:22 UTC - 0 likes

    drop chance 0.002 looting rate 0.2 sword used have looting 3 ........... so the formula is 1 + ( 0.2 * 3 ) : 1.6 1.6 * 0.002 : 0.0032 it will take like 300 mobs kill to get the head is that correct? is it from the entire server or just the mobs you kill the chances if you get the zombie head is it affect the probs of the snowman does it accumulative or just probability?

    Last edited Nov 12, 2014 by raton023

    I just hope that we never loose sigh of one thing, that it all started with a mouse.

  • Avatar of xtzstud xtzstud Nov 01, 2014 at 19:11 UTC - 0 likes

    When ever i try to spawn in a head like i used to be able to do it throws this error

    http://pastebin.com/JKdRrZS2 the top error is from using /ph spawn notch the bottom error is from using /playerheads spawn notch I did both just in case it was an error with the alias

    It works if the player is only but if they are offline it throws this error

    was this function removed because of the new UUID from mojang? or is it a problem with my server?

    PS:I'm using cauldron for 1.7.10 and using latest version of java (java8 update25) and latest forge version

  • Avatar of meiskam meiskam Oct 31, 2014 at 17:43 UTC - 0 likes

    @lANTHONYl: Go

    If you're using the 1.8 client, they show up skinned in your inventory .. anything before that they show up as flat Steve heads.

  • Avatar of lANTHONYl lANTHONYl Oct 31, 2014 at 02:58 UTC - 0 likes

    @lANTHONYl: Go

    No problem :D

Facts

Date created
Oct 21, 2012
Categories
Last update
Oct 16, 2014
Development stage
Mature
License
MPL-2.0
Curse link
Player Heads
Downloads
461,254
Recent files

Authors