Some protocol changes for 1.1.0.0

This commit is contained in:
Dylan K. Taylor
2017-04-01 19:20:30 +01:00
parent e47c7ea55f
commit 9c25ec3afd
13 changed files with 61 additions and 54 deletions

View File

@ -3249,8 +3249,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
}
$this->craftingType = 0;
$commandText = $packet->command;
if($packet->args !== null){
foreach($packet->args as $arg){ //command ordering will be an issue
if($packet->inputJson !== null){
foreach($packet->inputJson as $arg){ //command ordering will be an issue
$commandText .= " " . $arg;
}
}
@ -3340,7 +3340,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->server->getPluginManager()->callEvent($ev = new DataPacketReceiveEvent($this, $packet));
if(!$ev->isCancelled() and !$packet->handle($this)){
$this->server->getLogger()->debug("Unhandled " . get_class($packet) . " received from " . $this->getName());
$this->server->getLogger()->debug("Unhandled " . get_class($packet) . " received from " . $this->getName() . ": " . bin2hex($packet->buffer));
}
$timings->stopTiming();