EventPriority
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
WARNING: If these values are changed, handler sorting in HandlerList::getListenerList() may need to be updated.
Constants
ALL
public const ALL = [self::LOWEST, self::LOW, self::NORMAL, self::HIGH, self::HIGHEST, self::MONITOR]HIGH
public const HIGH = 2Event call is of high importance
HIGHEST
public const HIGHEST = 1Event call is critical and must have the final say in what happens to the event
LOW
public const LOW = 4Event call is of low importance
LOWEST
public const LOWEST = 5Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome
MONITOR
public const MONITOR = 0Event is listened to purely for monitoring the outcome of an event.
No modifications to the event should be made under this priority
NORMAL
public const NORMAL = 3Event call is neither important or unimportant, and may be ran normally. This is the default priority.
Methods
fromString()
public static function fromString(string $name) : int