summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-30 22:48:59 +0200
committermadmaxoft <github@xoft.cz>2013-07-30 22:48:59 +0200
commite9f18f8b4fcf4ae7891b631765bcc49a4a183220 (patch)
tree8e44bb38c5602e8b36d595434c03bb00dc396287 /source/ClientHandle.cpp
parentAdded the "Edit Sign" packet sent to the client placing a sign. (diff)
downloadcuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.tar
cuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.tar.gz
cuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.tar.bz2
cuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.tar.lz
cuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.tar.xz
cuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.tar.zst
cuberite-e9f18f8b4fcf4ae7891b631765bcc49a4a183220.zip
Diffstat (limited to '')
-rw-r--r--source/ClientHandle.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 526d00b98..75f29790c 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -1235,6 +1235,23 @@ void cClientHandle::HandleUnmount(void)
+void cClientHandle::HandleTabCompletion(const AString & a_Text)
+{
+ AStringVector Results;
+ m_Player->GetWorld()->TabCompleteUserName(a_Text, Results);
+ cRoot::Get()->GetPluginManager()->TabCompleteCommand(a_Text, Results);
+ if (Results.empty())
+ {
+ return;
+ }
+ std::sort(Results.begin(), Results.end());
+ SendTabCompletionResults(Results);
+}
+
+
+
+
+
void cClientHandle::SendData(const char * a_Data, int a_Size)
{
{
@@ -1781,6 +1798,15 @@ void cClientHandle::SendSpawnVehicle(const cEntity & a_Vehicle, char a_VehicleTy
+void cClientHandle::SendTabCompletionResults(const AStringVector & a_Results)
+{
+ m_Protocol->SendTabCompletionResults(a_Results);
+}
+
+
+
+
+
void cClientHandle::SendTeleportEntity(const cEntity & a_Entity)
{
m_Protocol->SendTeleportEntity(a_Entity);