Update Player.php

This commit is contained in:
ArkQuark 2022-10-12 20:42:54 +03:00 • committed by GitHub
parent b328736591
commit bc75dd9efa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();