IntellectualSites / IntellectualSites/PlotSquared
Distinguish between default and global flag values
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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