Fixed type case sensitivity

This commit is contained in:
Auxilor 2022-01-08 13:42:29 +00:00
parent 8f1873e3eb
commit abd1b4d009

View File

@ -29,7 +29,7 @@ public class CustomEcoEnchant extends EcoEnchant {
*/
public CustomEcoEnchant(@NotNull final Config config) {
super(
config.getString("id"), EnchantmentType.getByName(config.getString("type"))
config.getString("id"), EnchantmentType.getByName(config.getString("type").toUpperCase())
);
this.config = config;