From d3c1acce838eea26cf99b7069c514b18127fda73 Mon Sep 17 00:00:00 2001 From: Dabo Ross Date: Thu, 5 Sep 2013 01:55:25 -0700 Subject: [PATCH] Add EventPriority method to EventHandler --- .../java/net/md_5/bungee/event/EventHandler.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/event/src/main/java/net/md_5/bungee/event/EventHandler.java b/event/src/main/java/net/md_5/bungee/event/EventHandler.java index 34c07ba0..eb09e81b 100644 --- a/event/src/main/java/net/md_5/bungee/event/EventHandler.java +++ b/event/src/main/java/net/md_5/bungee/event/EventHandler.java @@ -9,4 +9,19 @@ import java.lang.annotation.Target; @Target(ElementType.METHOD) public @interface EventHandler { + + /** + * Define the priority of the event handler. + *

+ * Event handlers are called in order of priority: + *

    + *
  1. LOWEST
  2. + *
  3. LOW
  4. + *
  5. NORMAL
  6. + *
  7. HIGH
  8. + *
  9. HIGHEST
  10. + *
  11. MONITOR
  12. + *
+ */ + EventPriority priority() default EventPriority.NORMAL; }