diff --git a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java index 40342ea2c..66ec372bd 100644 --- a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java @@ -522,7 +522,7 @@ public class YamlDatabaseHandler extends AbstractDatabaseHandler { // Find out the value Class enumClass = (Class)clazz; try { - value = Enum.valueOf(enumClass, (String)value); + value = Enum.valueOf(enumClass, ((String)value).toUpperCase()); } catch (Exception e) { // This value does not exist - probably admin typed it wrongly // Show what is available and pick one at random