This commit is contained in:
Tema1d 2022-07-27 22:52:23 +03:00 • committed by GitHub
parent 51e77bf77e
commit 1f13444724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,9 +188,9 @@ class BanAPI{
$this->server->schedule(60, [$player, "close"], "You have been kicked: " . $reason); //Forces a kick
$player->blocked = true;
if($issuer instanceof Player){
$this->server->api->chat->broadcast($player->username . " has been kicked by " . $issuer->username . ": $reason\n");
$this->server->api->chat->broadcast($player->username . " has been kicked by " . $issuer->username . ": $reason");
}else{
$this->server->api->chat->broadcast($player->username . " has been kicked: $reason\n");
$this->server->api->chat->broadcast($player->username . " has been kicked: $reason");
}
}
}