pretty lore with global-bottom-lore

This commit is contained in:
kforbro
2023-04-03 19:50:30 +03:00
parent ee2f024606
commit a9aa6ceb34

View File

@@ -66,6 +66,14 @@ class ShopItemSlot(
)
}
addLoreLines(
item.bottomLore.formatEco(player)
)
if (item.isBuyable) {
addLoreLines(plugin.configYml.getStrings("shop-items.global-bottom-lore.buy").formatEco(player))
}
if (item.isShowingQuickBuySell) {
if (item.isBuyable && item.getMaxBuysAtOnce(player) > item.buyAmount) {
if (item.hasAltBuy) {
@@ -86,7 +94,13 @@ class ShopItemSlot(
)
}
}
}
if (item.isSellable) {
addLoreLines(plugin.configYml.getStrings("shop-items.global-bottom-lore.sell").formatEco(player))
}
if (item.isShowingQuickBuySell) {
if (item.isSellable) {
addLoreLines(
plugin.langYml.getStrings("quick-sell")
@@ -94,18 +108,6 @@ class ShopItemSlot(
}
}
addLoreLines(
item.bottomLore.formatEco(player)
)
if (item.isBuyable) {
addLoreLines(plugin.configYml.getStrings("shop-items.global-bottom-lore.buy").formatEco(player))
}
if (item.isSellable) {
addLoreLines(plugin.configYml.getStrings("shop-items.global-bottom-lore.sell").formatEco(player))
}
addLoreLines(plugin.configYml.getStrings("shop-items.global-bottom-lore.always").formatEco(player))
}
}) {