Multiple fixes/improvements to command system

This commit is contained in:
Luck committed 2016-06-28 18:07:55 +01:00
1 parent ebbc0511bf
commit 776ec45701
12 files changed
+55 -8

No files matched your search

@@ -39,4 +39,13 @@ public abstract class MainCommand {
Util.sendPluginMessage(sender, "You do not have permission to use this command!");
}
}
protected boolean canUse(Sender sender) {
for (SubCommand sc : getSubCommands()) {
if (sc.isAuthorized(sender)) {
return true;
}
}
return false;
}
}