Shop Configuration
data class ShopConfiguration(val guis: List<ShopGui> = listOf(ShopGui(0, 27, Component.text("Shop"), listOf(ShopSlot(0, ItemStack(Material.COBBLESTONE).let {
val meta = it.itemMeta
meta.persistentDataContainer.set(NamespacedKey("prisonplugin", "test"), PersistentDataType.BOOLEAN, true)
it.itemMeta = meta
it
}, null, "0.0", null)))), val priceLore: Component = Component.text("Price: ", TextColor.color(255, 102, 0)), val priceStyle: Style = Style.style(NamedTextColor.AQUA), val notEnoughBalance: Component = Component.text("You don't have enough money", NamedTextColor.RED), val backgroundItem: ItemStack = ItemStack(Material.GRAY_STAINED_GLASS_PANE), val confirmItem: ItemStack = ItemStack(Material.GREEN_STAINED_GLASS_PANE), val sellerTitle: Component = Component.text("Seller"), val sellerItem: ItemStack = ItemStack(Material.GOLD_INGOT), val errorItem: ItemStack = ItemStack(Material.RED_STAINED_GLASS_PANE), val offerCalculation: String = "return (value or -1.0)", val typeValue: Map<Material, BigDecimal> = emptyMap(), val sellerNPC: NPCConfiguration = NPCConfiguration(Location(Bukkit.getWorlds()[0], 0.0, 0.0, 0.0), Component.empty(), Profile.resolved("Seller", UUID.randomUUID())), val spawnDistance: Int = 50, val tabListRemoveTicks: Int = 30)
The configuration for the shop.
Author
MarkusTieger
Since
0.2.0
Constructors
Link copied to clipboard
constructor(guis: List<ShopGui> = listOf(ShopGui(0, 27, Component.text("Shop"), listOf(ShopSlot(0, ItemStack(Material.COBBLESTONE).let {
val meta = it.itemMeta
meta.persistentDataContainer.set(NamespacedKey("prisonplugin", "test"), PersistentDataType.BOOLEAN, true)
it.itemMeta = meta
it
}, null, "0.0", null)))), priceLore: Component = Component.text("Price: ", TextColor.color(255, 102, 0)), priceStyle: Style = Style.style(NamedTextColor.AQUA), notEnoughBalance: Component = Component.text("You don't have enough money", NamedTextColor.RED), backgroundItem: ItemStack = ItemStack(Material.GRAY_STAINED_GLASS_PANE), confirmItem: ItemStack = ItemStack(Material.GREEN_STAINED_GLASS_PANE), sellerTitle: Component = Component.text("Seller"), sellerItem: ItemStack = ItemStack(Material.GOLD_INGOT), errorItem: ItemStack = ItemStack(Material.RED_STAINED_GLASS_PANE), offerCalculation: String = "return (value or -1.0)", typeValue: Map<Material, BigDecimal> = emptyMap(), sellerNPC: NPCConfiguration = NPCConfiguration(Location(Bukkit.getWorlds()[0], 0.0, 0.0, 0.0), Component.empty(), Profile.resolved("Seller", UUID.randomUUID())), spawnDistance: Int = 50, tabListRemoveTicks: Int = 30)
Properties
Link copied to clipboard
The item used in guis by default
Link copied to clipboard
The compiled script for the calculation of the offer
Link copied to clipboard
The backgroundItem, but when you need to confirm something
Link copied to clipboard
An additional lore if the player has not enough money
Link copied to clipboard
Link copied to clipboard
The styling of the price
Link copied to clipboard
The seller main item
Link copied to clipboard
The Configuration for the seller npc
Link copied to clipboard
The title of the seller gui
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The map with the values of the types