summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-08 17:08:28 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-08 17:08:28 +0200
commitfa2b69b3f36cdfa755f9c466abe49ece70303062 (patch)
tree3a6e0e8aac863195bff2909b137381c9751526bc /src/Protocol/Protocol18x.cpp
parentFixed more 1.8 packets. (diff)
downloadcuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar
cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.gz
cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.bz2
cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.lz
cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.xz
cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.tar.zst
cuberite-fa2b69b3f36cdfa755f9c466abe49ece70303062.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol18x.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp
index ffa8d5ecb..eebac7a05 100644
--- a/src/Protocol/Protocol18x.cpp
+++ b/src/Protocol/Protocol18x.cpp
@@ -1132,3 +1132,20 @@ void cProtocol180::HandlePacketBlockDig(cByteBuffer & a_ByteBuffer)
+
+void cProtocol180::HandlePacketTabComplete(cByteBuffer & a_ByteBuffer)
+{
+ HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, Text);
+ HANDLE_READ(a_ByteBuffer, ReadBool, bool, HasPosition);
+
+ if (HasPosition)
+ {
+ HANDLE_READ(a_ByteBuffer, ReadBEInt64, Int64, Position);
+ }
+
+ m_Client->HandleTabCompletion(Text);
+}
+
+
+
+