mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
Fixed pre-login disconnect messages
This commit is contained in:
parent
c32a7467bb
commit
60ac8f91ba
@ -2427,7 +2427,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$this->tasks = [];
|
||||
|
||||
if($this->connected and !$this->closed){
|
||||
if($message != ""){
|
||||
if($reason != ""){
|
||||
$pk = new DisconnectPacket;
|
||||
$pk->message = $reason;
|
||||
$this->directDataPacket($pk);
|
||||
|
Loading…
x
Reference in New Issue
Block a user