pretty lore with global-bottom-lore
This commit is contained in:
@@ -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.isShowingQuickBuySell) {
|
||||||
if (item.isBuyable && item.getMaxBuysAtOnce(player) > item.buyAmount) {
|
if (item.isBuyable && item.getMaxBuysAtOnce(player) > item.buyAmount) {
|
||||||
if (item.hasAltBuy) {
|
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) {
|
if (item.isSellable) {
|
||||||
addLoreLines(
|
addLoreLines(
|
||||||
plugin.langYml.getStrings("quick-sell")
|
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))
|
addLoreLines(plugin.configYml.getStrings("shop-items.global-bottom-lore.always").formatEco(player))
|
||||||
}
|
}
|
||||||
}) {
|
}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user