From 333c106ac168d0c2622da6d35c0fe71f825851a5 Mon Sep 17 00:00:00 2001 From: thebigsmileXD Date: Sat, 11 Feb 2017 12:55:37 +0100 Subject: [PATCH] Remove Map stuff --- src/pocketmine/Player.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 07f8031369d..96f1643a531 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1040,7 +1040,7 @@ public function transferTo(string $address, int $port = 19132) { $pk->address = $ev->getAddress(); $pk->port = $ev->getPort(); $this->dataPacket($pk); - $this->getServer()->getLogger()->info('Transferring player "' . $this->getName() . '" to ' . $ev->getAddress() . ':' . $ev->getPort()); + Command::broadcastCommandMessage($this, new TranslationContainer("Transferred to {%0}:{%1}", [$ev->getAddress(), $ev->getPort()])); return true; } @@ -1945,9 +1945,6 @@ public function handleDataPacket(DataPacket $packet){ $this->onPlayerPreLogin(); - break; - case ProtocolInfo::MAP_INFO_REQUEST_PACKET: - var_dump($packet); break; case ProtocolInfo::MOVE_PLAYER_PACKET: $newPos = new Vector3($packet->x, $packet->y - $this->getEyeHeight(), $packet->z);