mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 07:22:18 +00:00
Multiple fixes/improvements to command system
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user