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 bingoclub12345 bingoclub12345 Feb 26, 2015 at 20:50 UTC - 0 likes

    There are 3 things I would like to address:

    1. Can the default lootingrate be set to 0.4? This is because Wither skulls drop with 2.5% chance. Before 1.8, that chance used to increase by 0.5% per looting level, but now it increases by 1%. Thus, 1% / 2.5% = 0.4.

    2. Can you add the mob heads for the Wither boss and the Endermite? For the Wither boss, you can use MHF_Wither. You may have to search for an Endermite account though. If need be, I can donate one and make the skin. Also, the chance of heads dropping for these mobs should be fairly high since the Wither boss already needs 3 Wither skulls and Endermites spawn 1 in 20 ender pearls on average. I suggest that the drop rate for the Wither boss be 0.2 and that for Endermites be 0.05.

    3. For some reason, as of last Sunday afternoon, newly obtained mob and player heads turn into the default Alex or Steve heads, depending on the account associated with said mob head. Heads that are already placed or inside chests are fine, but one placed and re-broken, these heads also turn into Steve or Alex heads. Is this an issue with the Mojang skin server, this particular plugin, or just the server I play on?

    Additional info to #3, I've tried using the /give command on a single player world to give me certain mob heads, and they seem to work. I also tried placing and breaking those heads, and they seem to be fine so I doubt it's a problem with Mojang. Also, the admins on my server claim that dropboringplayerheads is set to false. They also restarted the server a few times and the problem is still not fixed.

    Thanks in advance for your response.

  • Avatar of meiskam meiskam Feb 23, 2015 at 23:33 UTC - 0 likes

    @lee3kfc: Go

    Thanks for the report, it's because someone owns the account "Guardian" and it has a guardian skin.

    I've changed the Guardian skin to that user, so it should be fixed in dev build PlayerHeads-3.10-SNAPSHOT-61-g39b94b4.jar

    BFAK:meiskam,74919,2d6c5de1b19d7aabc1fb74542e178ac033f9e170a90b33ea1616af55a9476d26

  • Avatar of lee3kfc lee3kfc Feb 23, 2015 at 22:05 UTC - 0 likes

    dev#254
    rabbit -> /ph spawn #rabbit
    guardian -> /ph spawn guardian

    why guardian does not need #?

    Last edited Feb 23, 2015 by lee3kfc
  • Avatar of meiskam meiskam Feb 23, 2015 at 00:13 UTC - 0 likes

    @switorik: Go

    Try turning on 'antideathchest', the head will still drop on the ground but will probably not be protected by GriefPrevention

    @Theepwner: Go

    The lag spike is expected and can not be avoided by player heads, the server implementation runs a blocking web request to get the user's profile information. I'll look in to the change name thing.

    @saxons12: Go

    When someone either donates an account or finds a player using a guardian skin that won't change.

  • Avatar of Theepwner Theepwner Feb 22, 2015 at 21:53 UTC - 0 likes

    This plugin causes a lag spike when you try to spawn a player's head when they aren't online, or if you try to spawn the head of a player that doesn't exist. http:timings.aikar.co/?url=10362478

    Also, if you have a head of a player, but then that player changes their name, that old head will turn to steve and not convert to the new name. Would it be possible to add it so it converts somehow?

  • Avatar of switorik switorik Feb 21, 2015 at 22:05 UTC - 0 likes

    I would like to know if its possible to add a config option to allow players that behead another player to have the head appear in the player (killer) inventory instead of on the ground.

    The main reason being is that GriefPrevention has added an option to protect player drops, but it also protects the head that is dropped.

    If you could look into that, I would greatly appreciate it.

  • Avatar of saxons12 saxons12 Feb 20, 2015 at 22:52 UTC - 0 likes

    @meiskam: Go

    When will the guardian head be fixed?

  • Avatar of ElKomic ElKomic Feb 16, 2015 at 01:55 UTC - 0 likes

    Mh, if you think it is necesary, well, OK.
    I host https://apericraft.ovh, and the best way to contact me rapidly is on Twitter @ElKomic, if you want me to come.
    Thanks !

  • Avatar of meiskam meiskam Feb 13, 2015 at 16:45 UTC - 0 likes

    @kkid88: Go

    turn on antideathchest, `/ph config set antideathchest true`

    @ElKomic: Go

    PM me your server IP and a time to get together, I'll come on to see what's up

    Last edited Feb 13, 2015 by meiskam
  • Avatar of kkid88 kkid88 Feb 13, 2015 at 05:44 UTC - 0 likes

    Is there a way to get the heads to drop with keep inventory on?

Facts

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

Authors