Skip to content

Commit

Permalink
Fixed plot system permissions when generating plot
Browse files Browse the repository at this point in the history
  • Loading branch information
LordTuxn committed Sep 27, 2021
1 parent 5b5e224 commit 16b14c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ private CompletableFuture<Void> 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);
Expand Down

0 comments on commit 16b14c4

Please sign in to comment.