From 0b8c3b75aad2c56931d70293e5132615cc67c92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Tue, 18 Feb 2020 20:55:36 +0100 Subject: [PATCH] Don't show internal flags in flag list --- .../plotsquared/plot/commands/FlagCommand.java | 3 +++ .../plot/flags/implementations/DenyTeleportFlag.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/FlagCommand.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/FlagCommand.java index 1c43a3568..acec923c1 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/FlagCommand.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/FlagCommand.java @@ -343,6 +343,9 @@ import java.util.concurrent.CompletableFuture; final Map> flags = new HashMap<>(); for (PlotFlag plotFlag : GlobalFlagContainer.getInstance().getRecognizedPlotFlags()) { + if (plotFlag instanceof InternalFlag) { + continue; + } final String category = plotFlag.getFlagCategory().getTranslated(); final Collection flagList = flags.computeIfAbsent(category, k -> new ArrayList<>()); diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/DenyTeleportFlag.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/DenyTeleportFlag.java index 71954c73e..c6ead6960 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/DenyTeleportFlag.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/implementations/DenyTeleportFlag.java @@ -55,7 +55,7 @@ public class DenyTeleportFlag extends PlotFlag