bukkure.events

Event handlers for bukkit

actions

boring-methods

Boring methods to hide when describing an event

describe-event

(describe-event eventname)

Returns a list of methods an event has, excluding boring-methods

event

(event eventname fn & [priority])

Convenience function for registering events, eventname being prefixed with org.bukkit.event. and camelcased so that you can simply call (onevent block.block-break-event [e] (logging/info (bean e))) to register for the org.bukkit.event.block.BlockBreakEvent and run the body with the BlockBreakEvent as its only argument

find-event

(find-event name)

Finds an event by it’s name

handle-event

(handle-event f e)

A small wrapper around an event, to allow return values

priorities

register-event

(register-event plugin eventname f & [priority-key])

Registers an event to a plugin

register-eventlist

(register-eventlist plugin events)

Register a list of events.

registered-events