diff --git a/shared/src/main/java/me/neznamy/tab/shared/config/files/config/ConditionsSection.java b/shared/src/main/java/me/neznamy/tab/shared/config/files/config/ConditionsSection.java index 4d19b3d0a..46322b537 100644 --- a/shared/src/main/java/me/neznamy/tab/shared/config/files/config/ConditionsSection.java +++ b/shared/src/main/java/me/neznamy/tab/shared/config/files/config/ConditionsSection.java @@ -23,8 +23,10 @@ public ConditionsSection(@NotNull ConfigurationFile config) { continue; } String type = getString(SECTION + "." + conditionName + ".type"); - String yes = getString(SECTION + "." + conditionName + ".true", "true"); - String no = getString(SECTION + "." + conditionName + ".false", "false"); + String yes = getString(SECTION + "." + conditionName + ".true"); + if (yes == null) yes = "true"; + String no = getString(SECTION + "." + conditionName + ".false"); + if (no == null) no = "false"; if (list.size() >= 2 && type == null) { startupWarn(String.format("Condition \"%s\" has multiple conditions defined, but is missing \"type\" attribute. Using AND.", conditionName)); }