Essentials: /hat command couldn't have op or all permissions player wear hat.

Created on 4 Feb 2020  路  1Comment  路  Source: EssentialsX/Essentials

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

question

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.* false

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.

>All comments

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.* false

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elijahblooom picture elijahblooom  路  3Comments

turtlshell picture turtlshell  路  3Comments

LaxWasHere picture LaxWasHere  路  3Comments

Zhythero picture Zhythero  路  3Comments

zuhir picture zuhir  路  3Comments