From 16b14c471292f0ac449faa5c9025a5c59918c1e7 Mon Sep 17 00:00:00 2001 From: LordTuxn Date: Mon, 27 Sep 2021 21:44:13 +0200 Subject: [PATCH] Fixed plot system permissions when generating plot --- .../alpsbte/plotsystem/core/system/plot/PlotGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotGenerator.java b/src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotGenerator.java index 61f4046a..5357690b 100644 --- a/src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotGenerator.java +++ b/src/main/java/com/alpsbte/plotsystem/core/system/plot/PlotGenerator.java @@ -209,7 +209,9 @@ private CompletableFuture createPlotProtection() throws StorageException { allowedCommandsNonBuilder = config.getStringList(ConfigPaths.ALLOWED_COMMANDS_NON_BUILDERS); allowedCommandsNonBuilder.removeIf(c -> c.equals("/cmd1")); for (BaseCommand baseCommand : PlotSystem.getPlugin().getCommandManager().getBaseCommands()) { - allowedCommandsNonBuilder.addAll(Arrays.asList(baseCommand.getNames())); + for (String command : baseCommand.getNames()) { + allowedCommandsNonBuilder.add("/" + command); + } } blockedCommandsBuilders = config.getStringList(ConfigPaths.BLOCKED_COMMANDS_BUILDERS);