ServerLifecycleEvents

public final class ServerLifecycleEvents

Types

EndDataPackReload
Link copied to clipboard
public interface EndDataPackReload
ServerStarted
Link copied to clipboard
public interface ServerStarted
ServerStarting
Link copied to clipboard
public interface ServerStarting
ServerStopped
Link copied to clipboard
public interface ServerStopped
ServerStopping
Link copied to clipboard
public interface ServerStopping
StartDataPackReload
Link copied to clipboard
public interface StartDataPackReload

Properties

END_DATA_PACK_RELOAD
Link copied to clipboard
public final static Event<ServerLifecycleEvents.EndDataPackReloadEND_DATA_PACK_RELOAD
Called after a Minecraft server has reloaded data packs.
SERVER_STARTED
Link copied to clipboard
public final static Event<ServerLifecycleEvents.ServerStartedSERVER_STARTED
Called when a Minecraft server has started and is about to tick for the first time.
SERVER_STARTING
Link copied to clipboard
public final static Event<ServerLifecycleEvents.ServerStartingSERVER_STARTING
Called when a Minecraft server is starting.
SERVER_STOPPED
Link copied to clipboard
public final static Event<ServerLifecycleEvents.ServerStoppedSERVER_STOPPED
Called when a Minecraft server has stopped.All worlds have been closed and all (block)entities and players have been unloaded.
SERVER_STOPPING
Link copied to clipboard
public final static Event<ServerLifecycleEvents.ServerStoppingSERVER_STOPPING
Called when a Minecraft server has started shutting down.This occurs before the server's network channel is closed and before any players are disconnected.
START_DATA_PACK_RELOAD
Link copied to clipboard
public final static Event<ServerLifecycleEvents.StartDataPackReloadSTART_DATA_PACK_RELOAD
Called before a Minecraft server reloads data packs.

Sources

jvm source
Link copied to clipboard