mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Gamemode check for flying
This commit is contained in:
parent
4dd66b450c
commit
6ba7486097
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ class Entity extends stdClass{
|
||||||
$this->fallY = $y;
|
$this->fallY = $y;
|
||||||
$this->fallStart = microtime(true);
|
$this->fallStart = microtime(true);
|
||||||
}elseif($this->class === ENTITY_PLAYER and ($this->fallStart + 5) < microtime(true)){
|
}elseif($this->class === ENTITY_PLAYER and ($this->fallStart + 5) < microtime(true)){
|
||||||
if($this->player->gamemode === CREATIVE and $this->server->api->getProperty("allow-flight") !== true){
|
if($this->player->gamemode !== CREATIVE and $this->server->api->getProperty("allow-flight") !== true){
|
||||||
$this->player->close("flying");
|
$this->player->close("flying");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue