Added perm check for /kit command.

This commit is contained in:
Brianna 2019-10-30 19:47:51 -04:00
parent c6a5fc3abb
commit 2fed466f51

View File

@ -44,6 +44,12 @@ public class CommandKit extends AbstractCommand {
if (!(sender instanceof Player))
return ReturnType.NEEDS_PLAYER;
if (!kit.hasPermission((Player)sender)) {
instance.getLocale().getMessage("command.general.noperms").sendPrefixedMessage(sender);
return ReturnType.FAILURE;
}
kit.processGenericUse((Player) sender, false);
return ReturnType.SUCCESS;
} else if (args.length == 2) {