fixed cheking for space on item take

This commit is contained in:
GameHerobrine 2024-07-22 12:21:50 +03:00
parent 01b3e01db5
commit ce695ba052
3 changed files with 24 additions and 5 deletions

View file

@ -201,7 +201,7 @@ class BanAPI{
$reason = $reason == "" ? "No reason" : $reason;
$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->lastCorrect = new Vector3($player->entity->x, $player->entity->y, $player->entity->z);
$player->blocked = true;
if($issuer instanceof Player){
$this->server->api->chat->broadcast($player->username . " has been kicked by " . $issuer->username . ": $reason");