From 4fd393c4fe367ae6de217dcd74bd9a0ded11e495 Mon Sep 17 00:00:00 2001 From: ajgeiss0702 Date: Sun, 16 Apr 2023 10:04:23 -0700 Subject: [PATCH] Slash server commands will now not be shown if the user doesnt have permissions --- .../queue/commands/commands/SlashServer/SlashServerCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/ajg0702/queue/commands/commands/SlashServer/SlashServerCommand.java b/common/src/main/java/us/ajg0702/queue/commands/commands/SlashServer/SlashServerCommand.java index 0f1c93f..803b2f1 100644 --- a/common/src/main/java/us/ajg0702/queue/commands/commands/SlashServer/SlashServerCommand.java +++ b/common/src/main/java/us/ajg0702/queue/commands/commands/SlashServer/SlashServerCommand.java @@ -37,7 +37,7 @@ public class SlashServerCommand extends BaseCommand { @Override public String getPermission() { - return null; + return main.getConfig().getBoolean("require-permission") ? "ajqueue.queue."+server : null; } @Override