Skip to content

[BUG] LuckPerms world rewrite config not respected #522

@Katrix

Description

@Katrix
  • Versions
    Spigot/Paper/Sponge: 1.21.1
    GriefDefender: 3.0.2
    LuckPerms: 5.4.146

  • Describe the bug
    LuckPerms world-rewrite config option is not respected for flag permission checks.
    https://luckperms.net/wiki/Configuration#world-rewrite
    (Other context providers are not provided either, although I only care for the world rewrites in this case)

  • Steps to reproduce the behavior

  1. Make sure world-rewrite is enabled in LuckPerms config
  2. Go to a world that is rewritten to another world. For example, if world_nether is rewritten to world, then go to world_nether.
  3. Enable LuckPerms verbose checking /lp verbose record griefdefender & <player>
  4. Trigger a flag permission check.
  5. Use a GriefDefender command.
  6. lp verbose paste. Notice that rewritten world is not included in context, only the actual world for the flag check. For command check, everything is as it should.

In this case, I expect the world to be rewritten to gensokyo.

  • Screenshots
    image
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions