Player Heads
Ever PVP someone or PVE a mob and get no good loot? Feel like you deserve a trophy for your victory? Want a simpler alternative to bigger plugins that implement everything but the kitchen sink? 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, wear your opponent's face as a mask like camouflage, or just collect all of the mob heads.
Installation
Place PlayerHeads.jar in your plugins folder, on server start the configuration will be generated. Remember to remove any outdated playerheads jars when adding the new one.
If you can't be bothered to read the rest of this page, then just watch this video by Awesome_Soul:
Portuguese (Português) video: http://youtu.be/OqhI_oIGPWo
German (Deutsch) video: http://youtu.be/ijEws5yjo6Y
Try It
Server: aztecmc.org (rare drops are enabled for mob and player-heads)
Website: aztecmc.org
Documentation
Notes
- 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, deny (or add negative) nodes for the following: playerheads.alwaysbehead and playerheads.alwaysbeheadmob
- If you want to disable head drops in a specific world, use your permission plugin to deny (or add negative) nodes for the following in that world: playerheads.canbehead and playerheads.canbeheadmob
- If you have any problem using "lang_[language]_[country]_[variant].properties" for any reason, just use the file name "lang.properties" to override messages.
- Spawn mob heads with the following names: #creeper #zombie #skeleton #wither #spider #enderman #enderdragon ... (any many more!)
Known issues
- Renamed heads (with an anvil) don't stay renamed after placing, mining, dropping them.
- If for any reason your mob heads loose their name, you can get it back by placing and mining it.
- If you use the BountyHunters plugin and you have enabled head drops for bounties as well as player head drops from PlayerHeads, both will be dropped - for now, you should disable one or the other. Alternative solutions are being looked at.
- If you use JPerms, users with Op or playerheads.* permission will receive playerheads.alwaysbehead[mob] permissions and have 100% droprate since PlayerHeads permissions nodes are ignored. It's recommended to use another permissions plugin if this is a concern (LuckPerms, PermissionsEX, GroupManager).
Dev Builds
Development builds of this project can be acquired at the provided continuous integration servers. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
https://ci.meme.tips/job/PlayerHeads (upstream)/ (selected major changes only)
https://ci.meme.tips/job/PlayerHeads-5.x/ (rapid changes and work-in-progress)
Sourcecode / API documentation
We've included the entire sourcecode via github:
https://github.com/meiskam/PlayerHeads
Third-party plugin-developers can view the PlayerHeads API documentation at the following link: https://crashdemons.github.io/PlayerHeads/
Server Support
Current versions of the plugin have been tested as compatible on the following server environments:
- Spigot/Paper 1.8-1.18.2 (Use PlayerHeads 5.20.2 or lower; READ NOTE)
- Spigot/Paper 1.19-1.20.4
Server environments that are known to be incompatible:
- Glowstone 1.12 (only partial support is available in PlayerHeads 5.20.2 and lower)
Support should exist for any modern bukkit server with access to authlib which is needed to set textures.
Legacy version notes:
- 5.x drops support for older usernamed-based mobheads (3.x), fixing some longstanding issues with spawn commands; uses vanilla and texured heads exclusively (4.x)
- 4.x introduces new, more reliable support for head textures, more configuration options, updated mobs, and more consistent permission behavior and will continue to receive updates in the future - some older configurations may be incompatible (see the changelog and Configuration page). This version automatically upgrades 3.x heads to 4.x when breaking or dropping heads.
- 3.x maintains the original behavior of the plugin with username-based mobheads, but head skins may be less reliable over time and support has been discontinued.
Legacy version documentation: changelog, configuration, permissions.
@Nickbbeezy
@ArroneXB
@jesse131
The plugin PlayerHeads is completely irrelevant to this bug. Any server using CraftBukkit build #2612, Spigot build #443, or higher will have this issue with all head/skulls. However, I have submitted a Pull Request to CraftBukkit that fixes the issue. Feel free to post a comment in the pull request to help it get accepted faster.
@Nickbbeezy
I am having the same issue. Waiting on a fix. PlayerHeads is a very important plugin on my server.
@Nickbbeezy
Happens to me too. If the orientation is not facing east, it will always go to a default view and hover above ground.
@hippyflip12
This has been added to the next version, not released yet.
Is it possible to configure Playerheads in a way so it always drops a default player head instead of the actual head of the player?
This is great!
@meiskam
Yes I have NocheatPlus installed and mining the new mob hed's triggers the fastbreak check.
@Puremin0rez
@MarioG1
Do you have nocheat or similar installed? I'm currently using a hackish method to make certain people have permission to mine those particular heads, and it might throw a plugin like that off. It makes sense to me that it only affects custom mob heads, because of the way I coded it to "rename" the heads when you mine them. I tried to limit any potential side-effects to as narrow a selection as possible. I'll do more compatibility testing to try and resolve this in the next version, It shouldn't be that hard to do.
@EncryptedCurse
I tried to make & work for color codes everywhere, if you find a specific line in the language files that color codes don't work in please let me know.
@nathaniel_bot
Please create a ticket with the full output of: /version, /version PlayerHeads, /plugins, and your lang.properties (if you edited it), along with all console errors.
@MattyLuggs
The heads that drop because of the shake ability have nothing to do with this plugin, it is caused 100% because of mcMMO. I'm not familiar with the configuration of that plugin, but I'm sure there is a way to disable it.
@EncryptedCurse
I actually thought about adding this, but haven't gotten around to it yet. I was thinking something like: /ph spawn #<mobtype> .. such as /ph spawn #spider. (is it possible for a real users name to start with #?)
Could you please incorporate an ability to spawn in the mob heads? :D (maybe the command could be /ph spawn mob <mob type>?)
Hey slight issue with this plugin and MCMMO. All the mob heads have been set to 0 drop chance rate and nobody can obtain the heads. Which is perfect.
However if they use a skill in MCMMO called "shake" where you use a fishing rod to pull out mob drops, players can get heads from that ability.
Anyway to sort this?
Also can you add a command to spawn the new mob heads, I use them as prizes for tournaments but as they don't show up in the creative inventory there is no easy way to get them other than killing the mobs..?
Cheers,
Matt.
@Puremin0rez
I have the same problem it is caused by no-cheat but I don't know why it only affects heads from custom mobs.
@xGh0sTkiLLeRx
Yep, already figured that out!
@Puremin0rez
I'm also experiencing this problem.
@meiskam
Um yeah the player heads doesnt work in 1.4.6 at all.. its saying i have the plugin installed when i do /plugins. but when i use any playerhead command e.g. /playerhead /ph /ph spwan /ph reload
Nothing hapend at all, it diddnt even come up with ' this command does not exist ' it just diddnt even have any affect.. is there a fix for this?
@EncryptedCurse
It works just fine with the § (section sign) :)
For some reason none of my players can break the new blaze / spider / endermen heads - it just breaks and comes back immediatly. Only OPs can... strange?? They can break all other heads.
Could you add the ability to use color codes in the language file?
Is it possible to configure Playerheads in a way so it always drops a default player head instead of the actual head of the player? I'm using Playerheads in combination with chestshop and people can't sell those custom playerheads to the admin shop. I've solved this in a rather dirty way by giving players permissions to rename player heads, you can imagine that this isn't really the best way to solve this issue...
Could you add the playerhead drop rate? or is it already added if so which one is on the config? Also, what is the pklonky, the droprate and the looting rate mean? what do they do?
@Curtis4321
There's nothing I can think of in the code that's particularly cpu intensive. However, I've not tested it on a server with over 30 or so.
If you're interested in debugging where your lag is coming from, I'd be interested in looking at the results of some java performance monitor, perhaps JProfiler or Glassbox? I've never used a monitor before, so I wont be able to help you set it up :)
Does this cause lag issues on large servers? As i run it, and i am getting quite a bit of lag since installing, (150 to 300 players)