mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-30 00:56:45 +01:00
Don't show internal flags in flag list
This commit is contained in:
parent
34291d5b4d
commit
0b8c3b75aa
@ -343,6 +343,9 @@ import java.util.concurrent.CompletableFuture;
|
||||
|
||||
final Map<String, ArrayList<String>> flags = new HashMap<>();
|
||||
for (PlotFlag<?, ?> plotFlag : GlobalFlagContainer.getInstance().getRecognizedPlotFlags()) {
|
||||
if (plotFlag instanceof InternalFlag) {
|
||||
continue;
|
||||
}
|
||||
final String category = plotFlag.getFlagCategory().getTranslated();
|
||||
final Collection<String> flagList =
|
||||
flags.computeIfAbsent(category, k -> new ArrayList<>());
|
||||
|
@ -55,7 +55,7 @@ public class DenyTeleportFlag extends PlotFlag<DenyTeleportFlag.DeniedGroup, Den
|
||||
final DeniedGroup group = DeniedGroup.fromString(input);
|
||||
if (group == null) {
|
||||
throw new FlagParseException(this, input, Captions.FLAG_ERROR_ENUM,
|
||||
"members, nonmembers," + " trusted, nontrusted, nonowners");
|
||||
"members, nonmembers, trusted, nontrusted, nonowners");
|
||||
}
|
||||
return flagOf(group);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user