Fixes
This commit is contained in:
@@ -136,6 +136,7 @@ class Shop(
|
|||||||
val command = CommandShop(this, plugin)
|
val command = CommandShop(this, plugin)
|
||||||
|
|
||||||
fun broadcastPurchase(player: Player, item: ShopItem, amount: Int) {
|
fun broadcastPurchase(player: Player, item: ShopItem, amount: Int) {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
Bukkit.broadcastMessage(
|
Bukkit.broadcastMessage(
|
||||||
config.getString("buy-broadcasts.message")
|
config.getString("buy-broadcasts.message")
|
||||||
.replace("%player%", player.savedDisplayName)
|
.replace("%player%", player.savedDisplayName)
|
||||||
|
|||||||
@@ -219,11 +219,15 @@ class ShopItemSlot(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val meta = itemStack.itemMeta
|
val meta = itemStack.itemMeta
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
val lore = (meta?.lore ?: emptyList())
|
val lore = (meta?.lore ?: emptyList())
|
||||||
.replaceIn("%playerbuys%", item.getTotalBuys(player))
|
.replaceIn("%playerbuys%", item.getTotalBuys(player))
|
||||||
.replaceIn("%playerlimit%", item.limit)
|
.replaceIn("%playerlimit%", item.limit)
|
||||||
.replaceIn("%globalbuys%", item.getTotalGlobalBuys())
|
.replaceIn("%globalbuys%", item.getTotalGlobalBuys())
|
||||||
.replaceIn("%globallimit%", item.globalLimit)
|
.replaceIn("%globallimit%", item.globalLimit)
|
||||||
|
|
||||||
|
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
meta?.lore = lore
|
meta?.lore = lore
|
||||||
itemStack.itemMeta = meta
|
itemStack.itemMeta = meta
|
||||||
itemStack
|
itemStack
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: EcoShop
|
name: EcoShop
|
||||||
version: ${projectVersion}
|
version: ${version}
|
||||||
main: com.willfp.ecoshop.EcoShopPlugin
|
main: com.willfp.ecoshop.EcoShopPlugin
|
||||||
api-version: 1.17
|
api-version: 1.17
|
||||||
authors: [ Auxilor ]
|
authors: [ Auxilor ]
|
||||||
|
|||||||
Reference in New Issue
Block a user