|
|
@ -4,16 +4,16 @@ import org.bukkit.Material
|
|
|
|
import org.bukkit.inventory.ItemStack
|
|
|
|
import org.bukkit.inventory.ItemStack
|
|
|
|
|
|
|
|
|
|
|
|
object PurchaseItems {
|
|
|
|
object PurchaseItems {
|
|
|
|
fun paneStack(damage: Int, name: String): ItemStack {
|
|
|
|
fun paneStack(damage: Int, name: String, amount: Int = 1): ItemStack {
|
|
|
|
return ItemStack(Material.STAINED_GLASS_PANE, 1, damage.toShort()).apply {
|
|
|
|
return ItemStack(Material.STAINED_GLASS, amount, damage.toShort()).apply {
|
|
|
|
itemMeta = itemMeta.apply {
|
|
|
|
itemMeta = itemMeta.apply {
|
|
|
|
displayName = name.c
|
|
|
|
displayName = name.c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fun blockStack(damage: Int, name: String): ItemStack {
|
|
|
|
fun blockStack(damage: Int, name: String, amount: Int = 1): ItemStack {
|
|
|
|
return ItemStack(Material.STAINED_GLASS, 1, damage.toShort()).apply {
|
|
|
|
return ItemStack(Material.STAINED_GLASS, amount, damage.toShort()).apply {
|
|
|
|
itemMeta = itemMeta.apply {
|
|
|
|
itemMeta = itemMeta.apply {
|
|
|
|
displayName = name.c
|
|
|
|
displayName = name.c
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -27,12 +27,12 @@ object PurchaseItems {
|
|
|
|
|
|
|
|
|
|
|
|
var msgs = GlobalConfig.messages
|
|
|
|
var msgs = GlobalConfig.messages
|
|
|
|
val set1 = paneStack(14, msgs.set1)
|
|
|
|
val set1 = paneStack(14, msgs.set1)
|
|
|
|
val sub10 = paneStack(14, msgs.sub10)
|
|
|
|
val sub10 = paneStack(14, msgs.sub10, 10)
|
|
|
|
val sub1 = paneStack(14, msgs.sub1)
|
|
|
|
val sub1 = paneStack(14, msgs.sub1, 1)
|
|
|
|
|
|
|
|
|
|
|
|
val add1 = paneStack(5, msgs.add1)
|
|
|
|
val add1 = paneStack(5, msgs.add1, 1)
|
|
|
|
val add10 = paneStack(5, msgs.add10)
|
|
|
|
val add10 = paneStack(5, msgs.add10, 10)
|
|
|
|
val set64 = paneStack(5, msgs.set64)
|
|
|
|
val set64 = paneStack(5, msgs.set64, 64)
|
|
|
|
|
|
|
|
|
|
|
|
val sellConfirm = blockStack(5, msgs.sellConfirm)
|
|
|
|
val sellConfirm = blockStack(5, msgs.sellConfirm)
|
|
|
|
val sellAll = blockStack(5, msgs.sellAll)
|
|
|
|
val sellAll = blockStack(5, msgs.sellAll)
|
|
|
|