This commit is contained in:
Pascal Bürklin 2021-10-06 15:46:31 +02:00
parent 0a7a2a5276
commit d34d774307

View File

@ -687,7 +687,8 @@ public class DisguiseConfig {
DisguiseUtilities.getLogger().warning("Cannot parse '" + config.getString("UpdatesBranch") + "' to a valid option for UpdatesBranch"); DisguiseUtilities.getLogger().warning("Cannot parse '" + config.getString("UpdatesBranch") + "' to a valid option for UpdatesBranch");
} }
PermissionDefault commandVisibility = PermissionDefault.getByName(config.getString("Permissions.SeeCommands")); String seeCommands = config.getString("Permissions.SeeCommands");
PermissionDefault commandVisibility = seeCommands == null ? null : PermissionDefault.getByName(seeCommands);
if (commandVisibility == null) { if (commandVisibility == null) {
DisguiseUtilities.getLogger() DisguiseUtilities.getLogger()