Skip to main content

Restrict a PlotSquared flag to the values a building role actually needs

Applies to: PlotSquared; match the linked maintainer documentation to your installed platform and release.
Documentation checked .

Flag administration can grant more authority than a building role requires. A player who needs to toggle one cosmetic option should not automatically gain access to plot combat, movement and interaction policies. Test permissions on an ordinary role with one specific flag.

Commands beginning with a slash are player chat commands. Use them in game with the required role; check console support before adapting them for the hosting panel.

Work through the change

  1. Choose the exact flag and allowed values. Read its information with /plot flag info and record any basic flag-command permissions already inherited by the role.
  2. Review the maintainer’s flag-specific permission schema for the installed release. Grant the required command permissions and the narrow permitted value nodes; avoid a wildcard that includes every flag or value.
  3. Use a non-admin account that owns a disposable plot to set the approved value. Then attempt a different flag and an unapproved value so the denial path is tested too.
  4. Reconnect the player and repeat the checks after permission caches settle. Inspect inherited groups if either denied operation succeeds, and compare the effective permission output rather than adding competing grants blindly.

Check the result

The player should manage the intended option while receiving a clear denial for unrelated flag changes. Verify that staff retain their separate administration path. A successful command as operator is not evidence that the limited building role has the correct permissions.

Keep the final permission nodes with the flag’s accepted values in the role documentation. A later plugin update may add options under a wildcard. Specific grants make the intended authority easier to review without trying every new flag on a populated plot.

Recover or stop safely

Remove the trial grants and restore the test plot’s flags from your notes. If a broad inherited permission caused the leak, adjust the responsible group deliberately and retest affected roles. Do not solve a single missing value by giving the entire flag namespace.

For the broader setup, read Create a separate creative plot world with PlotSquared. Check the installed plugin version before applying syntax from the official PlotSquared documentation.