Skip to content

Incompatibility with LuckPerms regex permissions #4544

@Evidentsinger14

Description

@Evidentsinger14

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=25caaaed4d3842e19888234209733321

Error log (if applicable)

n/a

Bug description

When setting up prevent-type permissions using regex in LuckPerms r=essentials\.hat\.prevent-type\.(.*)_shulker_box to block all shulker boxes from being used as a /hat, the permissions are never checked. I have confirmed that the permission actually works in LuckPerms, as it shows to be set to true.
Image 1
Image 2
It also does not show as being checked when /ess debug is enabled (is in the log, but here's the output)

Steps to reproduce

  1. run /lp user <username> permission set r=essentials\.hat\.prevent-type\.(.*)_shulker_box true (as well has essentials.hat)
  2. give yourself a red shulker box (any color will work as long as it's (something)_shulker_box
  3. try to put it on your head with /hat

Expected behaviour

send the message to the player "You must have something to wear in your hand.", and fail to apply the hat.

Actual behaviour

The hat is applied, and permissions are never checked for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: upstreamBugs that exist in the Bukkit API or Minecraft itself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions