mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Add EventPriority method to EventHandler
This commit is contained in:
parent
eaea090d37
commit
d3c1acce83
@ -9,4 +9,19 @@ import java.lang.annotation.Target;
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface EventHandler
|
||||
{
|
||||
|
||||
/**
|
||||
* Define the priority of the event handler.
|
||||
* <p>
|
||||
* Event handlers are called in order of priority:
|
||||
* <ol>
|
||||
* <li>LOWEST</li>
|
||||
* <li>LOW</li>
|
||||
* <li>NORMAL</li>
|
||||
* <li>HIGH</li>
|
||||
* <li>HIGHEST</li>
|
||||
* <li>MONITOR</li>
|
||||
* </ol>
|
||||
*/
|
||||
EventPriority priority() default EventPriority.NORMAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user