diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt index 7adc6a1..0416650 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/Pet.kt @@ -363,6 +363,8 @@ class Pet( val level = player.getPetLevel(this) val isActive = player.activePet == this + val baseLoreLocation = if (level == this.maxLevel) "max-level-lore" else "lore" + return ItemStackBuilder(base) .setDisplayName( plugin.configYml.getFormattedString("gui.pet-icon.name") @@ -370,7 +372,7 @@ class Pet( .replace("%pet%", this.name) ) .addLoreLines { - injectPlaceholdersInto(plugin.configYml.getStrings("gui.pet-icon.lore"), player) + + injectPlaceholdersInto(plugin.configYml.getStrings("gui.pet-icon.$baseLoreLocation"), player) + if (isActive) plugin.configYml.getStrings("gui.pet-icon.active-lore") else plugin.configYml.getStrings("gui.pet-icon.not-active-lore") } diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index 20d0810..ce95296 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -81,6 +81,18 @@ gui: - "&8» &e%percentage_progress%%" - "&8» &e%current_xp%&8/&7%required_xp% &fXP" + # By default, the lore for the max level is the same, + # but you can change this if you want. + max-level-lore: + - "%description%" + - "&f" + - "&fEffects:" + - "%effects%" + - "" + - "&fProgress:" + - "&8» &e%percentage_progress%%" + - "&8» &e%current_xp%&8/&7%required_xp% &fXP" + active-lore: - "" - "&cThis pet is already active!"