forked from SteamWar/SteamWar
Add bigger coins and remove TNT from spawning
This commit is contained in:
@@ -59,13 +59,31 @@ class DealerInventory(player: Player): KotlinInventory(player) {
|
||||
companion object {
|
||||
private val priceKey = NamespacedKey(plugin, "price")
|
||||
private val amountKey = NamespacedKey(plugin, "amount")
|
||||
private val coinKey = NamespacedKey(plugin, "coin")
|
||||
val coinKey = NamespacedKey(plugin, "coin")
|
||||
|
||||
val coins = ItemStack(Material.RAW_GOLD).apply {
|
||||
itemMeta = itemMeta.apply {
|
||||
displayName(Component.text("Coins").color(NamedTextColor.GOLD))
|
||||
persistentDataContainer.apply {
|
||||
set(coinKey, PersistentDataType.BOOLEAN, true)
|
||||
set(coinKey, PersistentDataType.INTEGER, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val big_coins = ItemStack(Material.GOLD_INGOT).apply {
|
||||
itemMeta = itemMeta.apply {
|
||||
displayName(Component.text("Big Coins").color(NamedTextColor.GOLD))
|
||||
persistentDataContainer.apply {
|
||||
set(coinKey, PersistentDataType.INTEGER, 3)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val huge_coins = ItemStack(Material.GOLD_BLOCK).apply {
|
||||
itemMeta = itemMeta.apply {
|
||||
displayName(Component.text("Huge Coins").color(NamedTextColor.GOLD))
|
||||
persistentDataContainer.apply {
|
||||
set(coinKey, PersistentDataType.INTEGER, 9)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user