Fixed pre-login disconnect messages

This commit is contained in:
Shoghi Cervantes 2015-04-10 15:26:32 +02:00
parent c32a7467bb
commit 60ac8f91ba

View File

@ -2427,7 +2427,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->tasks = []; $this->tasks = [];
if($this->connected and !$this->closed){ if($this->connected and !$this->closed){
if($message != ""){ if($reason != ""){
$pk = new DisconnectPacket; $pk = new DisconnectPacket;
$pk->message = $reason; $pk->message = $reason;
$this->directDataPacket($pk); $this->directDataPacket($pk);