This commit is contained in:
libraryaddict 2023-11-14 16:09:45 +13:00
parent 96b02b057b
commit fd927a9b62

View File

@ -118,7 +118,7 @@ public class DisguisePermissions {
public DisguisePermissions(Permissible permissionHolder, String commandName) {
loadPermissions(permissionHolder, commandName.toLowerCase(Locale.ENGLISH));
if (permissionHolder == Bukkit.getConsoleSender()) {
if (permissionHolder == Bukkit.getConsoleSender() && hasPermissions()) {
CONSOLE_PERMISSIONS.put(commandName, this);
}
}