diff --git a/src/main/java/net/Indyuce/mmoitems/api/Type.java b/src/main/java/net/Indyuce/mmoitems/api/Type.java index d3cca223..c4e280b2 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/Type.java +++ b/src/main/java/net/Indyuce/mmoitems/api/Type.java @@ -98,7 +98,7 @@ public class Type { } public Type(TypeManager manager, ConfigurationSection config) { - id = config.getName(); + id = config.getName().toUpperCase().replace("-", "_").replace(" ", "_"); parent = manager.get(config.getString("parent").toUpperCase().replace("-", "_").replace(" ", "_")); set = parent.set;