fixed joining message to discord

This commit is contained in:
ArkQuark 2023-03-27 22:43:58 +03:00 • committed by GitHub
parent 9f8f5c8b43
commit 8057ac7fd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1349,8 +1349,6 @@ class Player{
return;
}
$this->server->send2Discord($this->username . " joined the game");
$this->auth = true;
if(!$this->data->exists("inventory") or ($this->gamemode & 0x01) === 0x01){
if(($this->gamemode & 0x01) === 0x01){
@ -1485,7 +1483,8 @@ class Player{
$this->server->schedule(50, [$this, "orderChunks"], []);
$this->blocked = false;
$this->server->handle("player.spawn", $this);
$this->server->send2Discord($this->username . " joined the game");
$this->server-dhandle("player.spawn", $this);
break;
case 2://Chunk loaded?
break;