PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Static Public Member Functions | |
static | fromString (string $name) |
Public Attributes | |
const | ALL |
const | HIGH = 2 |
const | HIGHEST = 1 |
const | LOW = 4 |
const | LOWEST = 5 |
const | MONITOR = 0 |
const | NORMAL = 3 |
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.
Definition at line 38 of file EventPriority.php.
|
static |
const pocketmine\event\EventPriority::ALL |
Definition at line 44 of file EventPriority.php.
const pocketmine\event\EventPriority::HIGH = 2 |
Event call is of high importance
Definition at line 70 of file EventPriority.php.
const pocketmine\event\EventPriority::HIGHEST = 1 |
Event call is critical and must have the final say in what happens to the event
Definition at line 75 of file EventPriority.php.
const pocketmine\event\EventPriority::LOW = 4 |
Event call is of low importance
Definition at line 61 of file EventPriority.php.
const pocketmine\event\EventPriority::LOWEST = 5 |
Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome
Definition at line 57 of file EventPriority.php.
const pocketmine\event\EventPriority::MONITOR = 0 |
Event is listened to purely for monitoring the outcome of an event.
No modifications to the event should be made under this priority
Definition at line 81 of file EventPriority.php.
const pocketmine\event\EventPriority::NORMAL = 3 |
Event call is neither important or unimportant, and may be ran normally. This is the default priority.
Definition at line 66 of file EventPriority.php.