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
committed by ajgeiss0702
parent a4465539cf
commit 6f6800187f
@@ -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