mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-26 20:27:38 +01:00
Fixed order in EnchantmentType
This commit is contained in:
parent
05f1775ef6
commit
e5e6ea1435
@ -436,14 +436,14 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Regist
|
||||
}
|
||||
|
||||
public static class EnchantmentType {
|
||||
private static final Set<EnchantmentType> values = new HashSet<>();
|
||||
|
||||
public static final EnchantmentType NORMAL = new EnchantmentType("normal", false, () -> ConfigManager.getLang().getString("not-curse-color"));
|
||||
public static final EnchantmentType CURSE = new EnchantmentType("curse", false, () -> ConfigManager.getLang().getString("curse-color"));
|
||||
public static final EnchantmentType SPECIAL = new EnchantmentType("special", () -> !ConfigManager.getConfig().getBool("types.special.allow-multiple"), () -> ConfigManager.getLang().getString("special-color"));
|
||||
public static final EnchantmentType ARTIFACT = new EnchantmentType("artifact", () -> !ConfigManager.getConfig().getBool("types.artifact.allow-multiple"), () -> ConfigManager.getLang().getString("artifact-color"));
|
||||
public static final EnchantmentType SPELL = new EnchantmentType("spell", true, () -> ConfigManager.getLang().getString("spell-color"));
|
||||
|
||||
private static final Set<EnchantmentType> values = new HashSet<>();
|
||||
|
||||
private boolean singular;
|
||||
private String color;
|
||||
private final String name;
|
||||
|
Loading…
Reference in New Issue
Block a user