From 696bdf7ff1de2b6f613a80c1d6e808ae3af8ded9 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 2 Jan 2011 15:10:51 +0000 Subject: [PATCH] Updated event priorities --- src/main/java/org/bukkit/event/Event.java | 39 ++++++++++++++--------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/bukkit/event/Event.java b/src/main/java/org/bukkit/event/Event.java index c73148b5..fe8a6d31 100644 --- a/src/main/java/org/bukkit/event/Event.java +++ b/src/main/java/org/bukkit/event/Event.java @@ -47,29 +47,38 @@ public abstract class Event { */ public enum Priority { /** - * Event is critical and must be called near-first + * Event call is of very low importance and should be ran first, to allow + * other plugins to further customise the outcome */ - Highest, + Lowest, /** - * Event is of high importance - */ - High, - - /** - * Event is neither important or unimportant, and may be ran normally - */ - Normal, - - /** - * Event is of low importance + * Event call is of low importance */ Low, /** - * Event is of extremely low importance, most likely just to monitor events, and must be run near-last + * Event call is neither important or unimportant, and may be ran normally */ - Lowest + Normal, + + /** + * Event call is of high importance + */ + High, + + /** + * Event call is critical and must have the final say in what happens + * to the event + */ + Highest, + + /** + * Event is listened to purely for monitoring the outcome of an event. + * + * No modifications to the event should be made under this priority + */ + Monitor } public enum Category {