add permission requirement for /ajq list
This commit is contained in:
@@ -43,6 +43,10 @@ public class ManageCommand extends Command {
|
||||
|
||||
}
|
||||
if(args[0].equalsIgnoreCase("list")) {
|
||||
if(!sender.hasPermission("ajqueue.list")) {
|
||||
sender.sendMessage(msgs.getBC("noperm"));
|
||||
return;
|
||||
}
|
||||
int total = 0;
|
||||
for(QueueServer server : Manager.getInstance().getServers()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user