Fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: EcoShop
|
||||
version: ${projectVersion}
|
||||
version: ${version}
|
||||
main: com.willfp.ecoshop.EcoShopPlugin
|
||||
api-version: 1.17
|
||||
authors: [ Auxilor ]
|
||||
|
||||
Reference in New Issue
Block a user