FlyLib

interface FlyLib<T>

FlyLib interface. Use FlyLibBuilder.

Types

Companion
Link copied to clipboard
object Companion

Functions

listen
Link copied to clipboard
abstract fun <T : Event> listen(clazz: Class<T>, action: ListenerAction<T>)

Listens to the specified event with Event Priority.NORMAL

abstract fun <T : Event> listen(clazz: Class<T>, priority: EventPriority, action: ListenerAction<T>)

Listens to the specified event with the specified priority.

loadConfig
Link copied to clipboard
abstract fun loadConfig()
saveConfig
Link copied to clipboard
abstract fun saveConfig()
updateConfig
Link copied to clipboard
abstract fun updateConfig(action: T.() -> Unit)

Properties

commandHandler
Link copied to clipboard
abstract val commandHandler: CommandHandler<T>

Class that manages commands

config
Link copied to clipboard
abstract val config: T?
plugin
Link copied to clipboard
abstract val plugin: JavaPlugin

The original plugin that called FlyLib