Skip to content

Use LuckPerms contexts for Region Management where Applicable #2301

Description

@burdoto

The Problem

On our server, we have two worlds:

  • A citybuild world where people create claims, build bases and have elevated flag-related permissions to set flags like block-trampling, mob-griefing etc
  • An SMP world where people can still claim, but claims are limited to just block damage limitation

Our permission manager, LuckPerms, allows me to set permissions on a per-world basis. Thus, I can use contexts to allow people access to certain flags in the citybuild world, but not in the smp world.

Considering that region flags can be set across dimensions, using the -w option, this behaviour will lead to potential to evade the permission plugin.

A Solution

WorldGuard should, if present, use LuckPerms and its Contexts in respective to the -w option to ensure proper permission checks.

Alternatives

It may be possible to avoid such evasion cases with further limitation of subcommands, like the flag command, but that will also limit options for the users whatsoever.

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions