KitManager

abstract class KitManager : Reloadable

Constructors

Link copied to clipboard
fun KitManager()

Functions

Link copied to clipboard
abstract fun createKit(    name: String,     cooldown: Int,     items: List<ItemStack>,     consoleCommands: List<String>,     playerCommands: List<String>): Kit

Create a kit with a name

Link copied to clipboard
abstract fun deleteKit(name: String): Kit?

Delete a kit.

Link copied to clipboard
abstract fun getAllKits(): List<Kit>
Link copied to clipboard
fun getKit(name: String): Kit?

Method to get a kit from its name

Link copied to clipboard
abstract fun reload()

Reload this Reloadable

Link copied to clipboard
abstract fun saveKit(kit: Kit)

Save a kit (likely to a file storage of some type)

Link copied to clipboard
abstract fun setKit(    name: String,     cooldown: Int,     items: List<ItemStack>,     consoleCommands: List<String>,     playerCommands: List<String>): Kit?

Set a kit to a new ItemStack

Properties

Link copied to clipboard
abstract val kitCache: MutableList<Kit>