Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
Event for a client status. More...
#include <clientevents.hpp>
Public Member Functions | |
ClientStatusEvent (ServerListPacket *packet) | |
Construct a new Client Status Event object. | |
Static Public Member Functions | |
static void | loadLua (lua_State *state) |
Loads this event to lua. | |
Static Public Member Functions inherited from IEvent< ClientStatusEvent > | |
static void | loadLua (lua_State *state) |
Loads the event to the lua state. | |
Public Attributes | |
ServerListPacket * | packet |
Pointer to server list packet. | |
Event for a client status.
Launched when a new clients was connected, it was a minecraft connection and it asked for the status of the server. Should implement in lua as such :
|
inline |
Construct a new Client Status Event object.
packet | the pointer to the packet |
Loads this event to lua.
state | the lua state to load to |
ServerListPacket* ClientStatusEvent::packet |
Pointer to server list packet.
Pointer to the server list packet, so that lua and other listeners can modify the data sent to clients individually.