summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-19 02:06:19 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-19 02:06:19 +0100
commita85b2897e0e9563be69ed2fde944573459103d56 (patch)
treed72c17167f69b925b381f9458924255fbcf051b9 /src/ClientHandle.cpp
parentProtoProxy: UpdateBlockEntity NBT is written (diff)
downloadcuberite-a85b2897e0e9563be69ed2fde944573459103d56.tar
cuberite-a85b2897e0e9563be69ed2fde944573459103d56.tar.gz
cuberite-a85b2897e0e9563be69ed2fde944573459103d56.tar.bz2
cuberite-a85b2897e0e9563be69ed2fde944573459103d56.tar.lz
cuberite-a85b2897e0e9563be69ed2fde944573459103d56.tar.xz
cuberite-a85b2897e0e9563be69ed2fde944573459103d56.tar.zst
cuberite-a85b2897e0e9563be69ed2fde944573459103d56.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 93dc78642..8f95212e1 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -547,12 +547,18 @@ void cClientHandle::HandlePlayerPos(double a_PosX, double a_PosY, double a_PosZ,
void cClientHandle::HandlePluginMessage(const AString & a_Channel, const AString & a_Message)
{
- if (a_Channel == "MC|AdvCdm") // Command block
+ if (a_Channel == "MC|AdvCdm") // Command block, set text, Client -> Server
{
const char* Data = a_Message.c_str();
-
HandleCommandBlockMessage(Data, a_Message.size());
-
+ return;
+ }
+ else if (a_Channel == "MC|Brand") // Client <-> Server branding exchange
+ {
+ // We are custom,
+ // We are awesome,
+ // We are MCServer.
+ SendPluginMessage("MC|Brand", "MCServer");
return;
}