Events

Note:

You can specify the event priority after each event syntax using the following syntax [with priority (lowest|low|normal|high|highest|monitor)] e.g. on spawn with priority lowest.
Note that not all of the events support event priority feature and they will throw an error.

On Skript start/stop

🔗

Event

Patterns:
  • [on] [skript] (start|load|enable|main)
  • [on] [skript] (stop|unload|disable|shutdown)
Since: 2.0
Called when the server starts or stops (actually, when Skript starts or stops, so a /reload will trigger these events as well).

Examples:

on skript start:
on server stop: