From 1111d65ec7c2a593528f1b52c8132dae0b41d6e2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 2 Jan 2011 15:10:51 +0000 Subject: [PATCH] Updated event priorities By: Dinnerbone --- .../src/main/java/org/bukkit/event/Event.java | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/Event.java b/paper-api/src/main/java/org/bukkit/event/Event.java index c73148b5a4..fe8a6d31e5 100644 --- a/paper-api/src/main/java/org/bukkit/event/Event.java +++ b/paper-api/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 {