Package org.bukkit.event
Annotation Interface EventHandler
An annotation to mark methods as being event handler methods
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Define if the handler ignores a cancelled event.Define the priority of the event.
-
Element Details
-
priority
EventPriority priorityDefine the priority of the event.First priority to the last priority executed:
- LOWEST
- LOW
- NORMAL
- HIGH
- HIGHEST
- MONITOR
- Returns:
- the priority
- Default:
NORMAL
-
ignoreCancelled
boolean ignoreCancelledDefine if the handler ignores a cancelled event.If ignoreCancelled is true and the event is cancelled, the method is not called. Otherwise, the method is always called.
- Returns:
- whether cancelled events should be ignored
- Default:
false
-