From 8889e687c9911f87603a833e0119033f242e2473 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 10 Aug 2015 23:40:01 +0200 Subject: [PATCH] Changed TextPacket --- src/pocketmine/network/protocol/TextPacket.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/network/protocol/TextPacket.php b/src/pocketmine/network/protocol/TextPacket.php index 1e0797263..a0ac6c3cb 100644 --- a/src/pocketmine/network/protocol/TextPacket.php +++ b/src/pocketmine/network/protocol/TextPacket.php @@ -32,6 +32,7 @@ class TextPacket extends DataPacket{ const TYPE_TRANSLATION = 2; const TYPE_POPUP = 3; const TYPE_TIP = 4; + const TYPE_SYSTEM = 5; public $type; public $source; @@ -46,6 +47,7 @@ class TextPacket extends DataPacket{ $this->source = $this->getString(); case self::TYPE_RAW: case self::TYPE_TIP: + case self::TYPE_SYSTEM: $this->message = $this->getString(); break; @@ -62,11 +64,12 @@ class TextPacket extends DataPacket{ $this->reset(); $this->putByte($this->type); switch($this->type){ + case self::TYPE_POPUP: case self::TYPE_CHAT: $this->putString($this->source); case self::TYPE_RAW: - case self::TYPE_POPUP: case self::TYPE_TIP: + case self::TYPE_SYSTEM: $this->putString($this->message); break;