From bc75dd9efa393a70d8ed1f6931278c89172ac89e Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Wed, 12 Oct 2022 20:42:54 +0300 Subject: [PATCH] Update Player.php --- src/Player.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 0035550f..3c0295da 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1471,7 +1471,11 @@ class Player{ $this->server->schedule(5, [$this->entity, "update"], [], true); $this->server->schedule(2, [$this->entity, "updateMovement"], [], true); $this->sendArmor(); - $this->sendChat($this->server->motd . "\n"); + $array = explode("@n", (string)$this->server->motd); + foreach($array as $msg){ + $this->sendChat($msg."\n"); + } + $this->sendInventory(); $this->sendSettings();