diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/Shop.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/Shop.kt index 6256917..d4627ef 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/Shop.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/Shop.kt @@ -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) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/gui/ShopItemSlot.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/gui/ShopItemSlot.kt index 1a9c847..53fca29 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/gui/ShopItemSlot.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/shop/gui/ShopItemSlot.kt @@ -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 diff --git a/eco-core/core-plugin/src/main/resources/plugin.yml b/eco-core/core-plugin/src/main/resources/plugin.yml index 4232feb..b52fd36 100644 --- a/eco-core/core-plugin/src/main/resources/plugin.yml +++ b/eco-core/core-plugin/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: EcoShop -version: ${projectVersion} +version: ${version} main: com.willfp.ecoshop.EcoShopPlugin api-version: 1.17 authors: [ Auxilor ]