AbilityManager

object AbilityManager : Listener

Functions

Link copied to clipboard
fun giveAbility(player: Player, type: AbilityType<*>)
Link copied to clipboard
fun hasAbility(player: Player, type: AbilityType<*>): Boolean
Link copied to clipboard
fun Listener.registerEvent(eventClass: Class<out Event>)
fun Listener.registerEvent(eventClass: KClass<out Event>)
Link copied to clipboard
fun Listener.registerEventFirst(eventClass: Class<out Event>)
fun Listener.registerEventFirst(eventClass: KClass<out Event>)
Link copied to clipboard
fun Listener.registerEvents()
Link copied to clipboard
fun Listener.registerEventsExcept(vararg eventClasses: Class<out Event>)
fun Listener.registerEventsExcept(vararg eventClasses: KClass<out Event>)
Link copied to clipboard
fun Listener.registerEventsFirst()
Link copied to clipboard
fun takeAbility(player: Player, ability: Ability)
fun takeAbility(player: Player, type: AbilityType<*>)
Link copied to clipboard
fun Listener.unregisterEvents()