IntellectualSites / IntellectualSites/PlotSquared

Distinguish between default and global flag values

Open
#3,406 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Java
Stars
653
Forks
975
Avg merge
2m
Merged PRs (30d)
6

Description

What feature do you want to see added?

The Problem

Currently if you set the global use flag in the world.yml the flag does not show up in the plot info. This can cause confusion if a player want's to block all use cases on the plot, as removing the use flag just resets it to the global values of the world.

Possible solution

Instead of having the global flags apply to all plots, only copy the global flags to newly created plots, so players have the full transparency on how the flag system works. You could possibly also give the option to load the global value of flags, like /plot flag reset <flag> that resets the flag to the global value and removes it if no global value is set.

Are there any alternatives?

You could make a plugin that uses the PlotClaimedNotifyEvent and set the plot flags when the event is called.

Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how global flags from world.yml are applied to plots and how plot flag values appear in plot info. Clarify whether the intended behavior is copying values on plot creation, adding a reset-to-global command, or both, then define tests covering global, plot-specific, removed, and newly created plot flags.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.