Structure / Lifecycle
The following page describes the general layout and lifecycle of a plugin.
Upon start of the server, the server will invoke the constructor of all existing classes that implement the IPlugin interface
After all plugins have been loaded, their
PostLoad
method will be called.If the server is shutdown (gracefully), the
Shutdown
method of each plugin is called.
The Shutdown
method may be skipped, in case the server process is killed, so it cannot be guaranteed to be executed correctly.
Additionally, the fields Author
, Name
and Version
are required
Example
Last updated