mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-04 13:54:35 +01:00
Handle special access
This commit is contained in:
parent
39565991f1
commit
e28e1f164a
@ -360,6 +360,10 @@ public abstract class DisguiseBaseCommand implements CommandExecutor {
|
||||
}
|
||||
|
||||
protected DisguisePermissions getPermissions(CommandSender sender) {
|
||||
if (!LibsPremium.isPremium() && getClass() == DisguiseCommand.class && sender instanceof Player && !sender.isOp()) {
|
||||
sender = Bukkit.getConsoleSender();
|
||||
}
|
||||
|
||||
return DisguiseParser.getPermissions(sender, getPermNode());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user