Structure / Lifecycle
The following page describes the general layout and lifecycle of a plugin.
Example
public class Plugin : HogWarpSdk.IPlugin
{
public string Author { get; } = "";
public string Name { get; } = "";
public Version Version { get; } = new(1, 0, 0, 0);
public Plugin()
{
// Called first, when server starts
}
public void PostLoad()
{
// Called after all plugins have been loaded
}
public void Shutdown()
{
// Called when plugin / server gets shutdown
}
}
Last updated