Sueta

KIA

1.1.5

Kotlin Inventory API

·Plugin

KIA - Kotlin Inventory API

WIKI

KIA is a library aimed to make inventory handling as easy as possible, without having to use boilerplate code, such as listening to events and having to mind about inventory titles.

Installation

To install KIA, simply put the following code into your onEnabale() function:

override fun onEnable() {
    KIA.create(this)
}



Key Features

  • Title-free inventory management
  • Easy onClick methods to listen to events
  • Easy to use onOpen / onClose function
  • NBT based Item management
  • Easy to use Animations
  • Lots of utility functions
  • Pagination inventories
  • Managed WiKi

Code examples

Creating inventories:

val inv = kInventory(sender, 3.rows, InventoryType.CHEST) {
}


Creating items:

val item = kItem(Material.IRON_PICKAXE) {}

Listening to items:

val item = kItem(Material.IRON_PICKAXE) {
    onClick { registeredKItem, player ->

    }
}

Similar projects

Plugin →