summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-03 21:34:36 +0100
committermadmaxoft <github@xoft.cz>2013-11-03 21:34:46 +0100
commit3002dc8bbf122a348d6aaa691ff883f453080939 (patch)
tree129c416516e6d7c4bc48018116e724ef10151e83
parentMerge pull request #306 from tigerw/master (diff)
downloadcuberite-3002dc8bbf122a348d6aaa691ff883f453080939.tar
cuberite-3002dc8bbf122a348d6aaa691ff883f453080939.tar.gz
cuberite-3002dc8bbf122a348d6aaa691ff883f453080939.tar.bz2
cuberite-3002dc8bbf122a348d6aaa691ff883f453080939.tar.lz
cuberite-3002dc8bbf122a348d6aaa691ff883f453080939.tar.xz
cuberite-3002dc8bbf122a348d6aaa691ff883f453080939.tar.zst
cuberite-3002dc8bbf122a348d6aaa691ff883f453080939.zip
-rw-r--r--source/Protocol/Protocol17x.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp
index ef6049900..e23ee66a5 100644
--- a/source/Protocol/Protocol17x.cpp
+++ b/source/Protocol/Protocol17x.cpp
@@ -1000,7 +1000,28 @@ void cProtocol172::HandlePacketClientSettings(UInt32 a_RemainingBytes)
void cProtocol172::HandlePacketClientStatus(UInt32 a_RemainingBytes)
{
- // TODO
+ HANDLE_PACKET_READ(ReadByte, Byte, ActionID);
+ switch (ActionID)
+ {
+ case 0:
+ {
+ // Respawn
+ m_Client->HandleRespawn();
+ break;
+ }
+ case 1:
+ {
+ // Request stats
+ // TODO
+ break;
+ }
+ case 2:
+ {
+ // Open Inventory achievement
+ // TODO
+ break;
+ }
+ }
}