FlyLibBuilder

class FlyLibBuilder<T>(plugin: JavaPlugin)

A builder that creates Fly Lib.

Constructors

FlyLibBuilder
Link copied to clipboard
fun FlyLibBuilder(plugin: JavaPlugin)

Functions

command
Link copied to clipboard
fun command(vararg command: Command<T>): FlyLibBuilder<T>

Add a command.

config
Link copied to clipboard
fun config(baseCommandName: String? = null, config: T): FlyLibBuilder<T>
defaultPermission
Link copied to clipboard
fun defaultPermission(permission: Permission): FlyLibBuilder<T>

Specifies the default permissions that will be assigned if the command permissions are not specified.

listen
Link copied to clipboard
fun <E : Event> listen(clazz: Class<E>, priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, action: ListenerAction<E>): FlyLibBuilder<T>

Listens to the specified event with the specified priority. The event Listen is registered when the calling plugin is enabled, not when this method is called, and is unregistered when the calling plugin is disabled.