Moved config section

This commit is contained in:
Auxilor 2020-12-17 12:48:06 +00:00
parent 28f32b8930
commit cfd625eadd
2 changed files with 4 additions and 7 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 = enchantment.isTreasure() ? EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-treasure-rarity")) : EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-rarity"));
rarity = enchantment.isTreasure() ? EnchantmentRarity.getByName(ConfigManager.getConfig().getString("rarity.vanilla-treasure-rarity")) : EnchantmentRarity.getByName(ConfigManager.getConfig().getString("rarity.vanilla-rarity"));
}
color = type.getColor();

View File

@ -45,8 +45,6 @@ lore:
- legendary
- 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
@ -97,7 +95,6 @@ types:
artifact:
allow-multiple: false # Allow multiple artifacts on a single item (can cause lag!)
#
# Enchantment-specific config has now been moved to their own files.
# Check the /enchants directory.
#
rarity:
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)