GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 7216337a authored by ivan691's avatar ivan691 Committed by GitHub
Browse files

Fix no message $player->close , tested!

It works properly with () !
parent 92cd0f78
......@@ -3990,7 +3990,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
public final function close($message = "", $reason = "generic reason", $notify = true){
if($this->connected and !$this->closed){
if($notify and strlen((string) $reason) > 0){
$pk = new DisconnectPacket;
$pk = new DisconnectPacket();
$pk->hideDisconnectionScreen = null;
$pk->message = $reason;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment