mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
player lastCorrect position is force updated before kicking
This commit is contained in:
parent
12d19e6355
commit
2ab16c025a
1 changed files with 1 additions and 0 deletions
|
|
@ -201,6 +201,7 @@ class BanAPI{
|
||||||
$reason = $reason == "" ? "No reason" : $reason;
|
$reason = $reason == "" ? "No reason" : $reason;
|
||||||
|
|
||||||
$this->server->schedule(60, [$player, "close"], "You have been kicked: " . $reason); //Forces a kick
|
$this->server->schedule(60, [$player, "close"], "You have been kicked: " . $reason); //Forces a kick
|
||||||
|
$player->lastCorrect = new Vector3($player->entity->x, $player->entity->y, $player->entity->z); //TODO better fix
|
||||||
$player->blocked = true;
|
$player->blocked = true;
|
||||||
if($issuer instanceof Player){
|
if($issuer instanceof Player){
|
||||||
$this->server->api->chat->broadcast($player->username . " has been kicked by " . $issuer->username . ": $reason");
|
$this->server->api->chat->broadcast($player->username . " has been kicked by " . $issuer->username . ": $reason");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue