Chat packet handled in the new way; fixed missing packet sending for inventory slot.
Again, API change! cPlugin:OnChat() has had its parameters swapped, to match all the other callbacks - Player first, Message second git-svn-id: http://mc-server.googlecode.com/svn/trunk@751 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -105,6 +105,7 @@ public:
|
||||
void SendDisconnect(const AString & a_Reason);
|
||||
void SendHandshake (const AString & a_ServerName);
|
||||
void SendInventorySlot(int a_WindowID, short a_SlotNum, const cItem & a_Item);
|
||||
void SendChat(const AString & a_Message);
|
||||
|
||||
const AString & GetUsername(void) const; //tolua_export
|
||||
|
||||
@@ -196,8 +197,7 @@ private:
|
||||
void HandlePlayerPos (double a_PosX, double a_PosY, double a_PosZ, double a_Stance, bool a_IsOnGround);
|
||||
void HandleBlockDig (int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status);
|
||||
void HandleBlockPlace (int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, const cItem & a_HeldItem);
|
||||
void HandlePickupSpawn (cPacket_PickupSpawn * a_Packet);
|
||||
void HandleChat (cPacket_Chat * a_Packet);
|
||||
void HandleChat (const AString & a_Message);
|
||||
void HandlePlayerLook (cPacket_PlayerLook * a_Packet);
|
||||
void HandlePlayerMoveLook (cPacket_PlayerMoveLook * a_Packet); // While m_bPositionConfirmed (normal gameplay)
|
||||
void HandleAnimation (cPacket_ArmAnim * a_Packet);
|
||||
|
||||
Reference in New Issue
Block a user