Added treasure rarity

This commit is contained in:
Auxilor 2020-12-17 12:46:05 +00:00
parent 8acce77ced
commit 28f32b8930
2 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class EnchantmentCache {
);
name = String.valueOf(ConfigManager.getLang().getString("enchantments." + enchantment.getKey().getKey().toLowerCase() + ".name"));
type = enchantment.isCursed() ? EcoEnchant.EnchantmentType.CURSE : EcoEnchant.EnchantmentType.NORMAL;
rarity = EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-rarity"));
rarity = enchantment.isTreasure() ? EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-treasure-rarity")) : EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-rarity"));
}
color = type.getColor();

View File

@ -46,6 +46,7 @@ lore:
- special
- veryspecial
vanilla-rarity: uncommon # Vanilla enchantments do not have an EcoEnchants rarity - what rarity should they have?
vanilla-treasure-rarity: legendary # Treasure enchantments do not appear in vanilla enchanting tables (Mending, Soul Speed, Frost Walker)
describe: # Describe enchantments in lore
enabled: false