mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed cheking for space on item take
This commit is contained in:
parent
01b3e01db5
commit
ce695ba052
3 changed files with 24 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue