Slash server commands will now not be shown if the user doesnt have permissions
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user