Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
ServerStartEvent Class Reference

Event for a server starting. More...

#include <serverevents.hpp>

Inheritance diagram for ServerStartEvent:
IEvent< ServerStartEvent >

Additional Inherited Members

- Static Public Member Functions inherited from IEvent< ServerStartEvent >
static void loadLua (lua_State *state)
 Loads the event to the lua state.
 

Detailed Description

Event for a server starting.

Launched when the server starts, in practice straight after the plugins were loaded. Should implement in lua as such :

local function onStart(e)
-- do your thing
end
event.onServerStart(onClient)

The documentation for this class was generated from the following file: