fix error with require-permission and slashserver commands

This commit is contained in:
ajgeiss0702
2022-01-05 12:28:56 -07:00
parent cca8c2740f
commit d68657bf95
@@ -45,7 +45,7 @@ public class SlashServerCommand extends BaseCommand {
sender.sendMessage(getMessages().getComponent("errors.player-only")); sender.sendMessage(getMessages().getComponent("errors.player-only"));
return; return;
} }
if(main.getConfig().getBoolean("require-permission") && !sender.hasPermission("ajqueue.queue."+args[0])) { if(main.getConfig().getBoolean("require-permission") && !sender.hasPermission("ajqueue.queue."+server)) {
sender.sendMessage(getMessages().getComponent("noperm")); sender.sendMessage(getMessages().getComponent("noperm"));
return; return;
} }