diff --git a/src/pocketmine/event/EventPriority.php b/src/pocketmine/event/EventPriority.php index 5f453ea0c..62c07392b 100644 --- a/src/pocketmine/event/EventPriority.php +++ b/src/pocketmine/event/EventPriority.php @@ -23,7 +23,12 @@ namespace pocketmine\event; /** - * List of event prioritoes + * List of event priorities + * + * Events will be called in this order: + * LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR + * + * MONITOR events should not change the event outcome or contents */ abstract class EventPriority{ /** diff --git a/src/pocketmine/event/HandlerList.php b/src/pocketmine/event/HandlerList.php index 03cd9774b..acf0b8ff1 100644 --- a/src/pocketmine/event/HandlerList.php +++ b/src/pocketmine/event/HandlerList.php @@ -70,12 +70,12 @@ class HandlerList{ public function __construct(){ $this->handlerSlots = array( - EventPriority::MONITOR => [], - EventPriority::HIGHEST => [], - EventPriority::HIGH => [], - EventPriority::NORMAL => [], + EventPriority::LOWEST => [], EventPriority::LOW => [], - EventPriority::LOWEST => [] + EventPriority::NORMAL => [], + EventPriority::HIGH => [], + EventPriority::HIGHEST => [], + EventPriority::MONITOR => [] ); self::$allLists[] = $this; }