mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +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 = [];
|
$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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user