Added some debug for raw packets and Query handling

This commit is contained in:
Dylan K. Taylor
2018-07-13 10:07:11 +01:00
parent ebbbc581ca
commit 65e44364e5
2 changed files with 12 additions and 1 deletions

View File

@ -2471,6 +2471,8 @@ class Server{
try{
if(strlen($payload) > 2 and substr($payload, 0, 2) === "\xfe\xfd" and $this->queryHandler instanceof QueryHandler){
$this->queryHandler->handle($interface, $address, $port, $payload);
}else{
$this->logger->debug("Unhandled raw packet from $address $port: " . bin2hex($payload));
}
}catch(\Throwable $e){
if(\pocketmine\DEBUG > 1){