Package-level declarations

Types

Link copied to clipboard
data class NPCConfiguration(val location: Location = Location(Bukkit.getWorlds()[0], 0.0, 20.0, 0.0, 0F, 0F), val name: Component?, val profile: Profile)

The configuration for the npc shop.

Link copied to clipboard
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.

Link copied to clipboard
data class ShopGui(val id: Int, val size: Int, val title: Component, val slots: List<ShopSlot>)

A shop inventory gui.

Link copied to clipboard
data class ShopSlot(val slot: Int, val display: ItemStack, val action: ShopAction?, val priceCalculation: String?, val processor: String?)

A slot in a ShopGui