diff --git a/src/main/java/fr/xephi/authme/permission/PermissionsManager.java b/src/main/java/fr/xephi/authme/permission/PermissionsManager.java index 52e942266..63d755e86 100644 --- a/src/main/java/fr/xephi/authme/permission/PermissionsManager.java +++ b/src/main/java/fr/xephi/authme/permission/PermissionsManager.java @@ -328,7 +328,8 @@ public class PermissionsManager implements PermissionsService { } public boolean hasPermission(Player player, CommandDescription command) { - if (CollectionUtils.isEmpty(command.getCommandPermissions().getPermissionNodes())) { + if (command.getCommandPermissions() == null + || CollectionUtils.isEmpty(command.getCommandPermissions().getPermissionNodes())) { return true; }