This commit is contained in:
Auxilor
2023-11-22 15:18:23 +00:00
parent 23c82e6448
commit f8ce92e8d3
3 changed files with 6 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ class Shop(
val command = CommandShop(this, plugin)
fun broadcastPurchase(player: Player, item: ShopItem, amount: Int) {
@Suppress("DEPRECATION")
Bukkit.broadcastMessage(
config.getString("buy-broadcasts.message")
.replace("%player%", player.savedDisplayName)

View File

@@ -219,11 +219,15 @@ class ShopItemSlot(
}
val meta = itemStack.itemMeta
@Suppress("DEPRECATION")
val lore = (meta?.lore ?: emptyList())
.replaceIn("%playerbuys%", item.getTotalBuys(player))
.replaceIn("%playerlimit%", item.limit)
.replaceIn("%globalbuys%", item.getTotalGlobalBuys())
.replaceIn("%globallimit%", item.globalLimit)
@Suppress("DEPRECATION")
meta?.lore = lore
itemStack.itemMeta = meta
itemStack

View File

@@ -1,5 +1,5 @@
name: EcoShop
version: ${projectVersion}
version: ${version}
main: com.willfp.ecoshop.EcoShopPlugin
api-version: 1.17
authors: [ Auxilor ]