/hat command couldn't have op or all permissions player wear hat.
flandretw opened this issue · 1 comments
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’s a permission to prevent a specific item or block from being used as a hat:
essentials.hat.prevent-type.<item-name>
Since operators have all permissions, they also have essentials.hat.prevent-type.*, meaning that they can’t use any item as a hat. It’s a bit silly, but that’s just how it is.
To fix this, simply negate this permission for the group that has all permissions.
Example (if you’re using LuckPerms):
/lp group owner permission set essentials.hat.prevent-type.* false
This will let players in that group use any item or block as a hat. You don’t have to do this for the regular player group as regular players don’t have all permissions.