Details
Output of /ess version
Server version: 1.15.2-R0.1-SNAPSHOT git-Paper-76 (MC: 1.15.2)
EssentialsX version: 2.17.1.54
GroupManager version: 0.3.0
PlaceholderAPI version: 2.10.4
Vault version: 1.7.2-b107
Citizens version: 2.0.26-SNAPSHOT (build 1813)
EssentialsXChat version: 2.17.1.54
EssentialsXProtect version: 2.17.1.54
EssentialsXGeoIP version: 2.17.1.54
EssentialsXAntiBuild version: 2.17.1.54
EssentialsXSpawn version: 2.17.1.54
Description
Player have op or all permissions group can't wear hat and it say "You cannot use this item as a hat!"
Video Link
https://www.youtube.com/watch?v=7aFuVHtmAG4
This is because there鈥檚 a permission to prevent a specific item or block from being used as a hat: Since operators have all permissions, they also have _essentials.hat.prevent-type.*_, meaning that they can鈥檛 use _any_ item as a hat. It鈥檚 a bit silly, but that鈥檚 just how it is. To fix this, simply negate this permission for the group that has all permissions. This will let players in that group use any item or block as a hat. You don鈥檛 have to do this for the regular player group as regular players don鈥檛 have all permissions.
_essentials.hat.prevent-type.
Example (if you鈥檙e using LuckPerms):
/lp group owner permission set essentials.hat.prevent-type.* false
Most helpful comment
This is because there鈥檚 a permission to prevent a specific item or block from being used as a hat:
_essentials.hat.prevent-type.
Since operators have all permissions, they also have _essentials.hat.prevent-type.*_, meaning that they can鈥檛 use _any_ item as a hat. It鈥檚 a bit silly, but that鈥檚 just how it is.
To fix this, simply negate this permission for the group that has all permissions.
Example (if you鈥檙e using LuckPerms):
/lp group owner permission set essentials.hat.prevent-type.* falseThis will let players in that group use any item or block as a hat. You don鈥檛 have to do this for the regular player group as regular players don鈥檛 have all permissions.