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