Slash server commands will now not be shown if the user doesnt have permissions

This commit is contained in:
ajgeiss0702
2023-04-16 10:04:23 -07:00
parent 126a3374d7
commit 4fd393c4fe
@@ -37,7 +37,7 @@ public class SlashServerCommand extends BaseCommand {
@Override @Override
public String getPermission() { public String getPermission() {
return null; return main.getConfig().getBoolean("require-permission") ? "ajqueue.queue."+server : null;
} }
@Override @Override