Remove redundant permission checks for Flag List Command #4747
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR relates to an issue where a player cannot list all plot flags available if he isn't on a plot where he has permissions to change them.
Description
As said in the overview, this PR aims to solve the issue of a player not being able to use
/plot flag listif he does not meet the requirement of standing on a plot where he has permission to change these flags. The idea behind this issue being that a player should be able to view the list of flags regardless of permission to change them - as one might be on a plot of another player and wants to find the correct flag to do XY, e.g. to help him out. This eliminates the need to visit / google the documentation or go to a own plot just to enter this command and view the available flags. It still, though, needs theplots.flag.list-permission to be executed.Submitter Checklist
@since TODO.