mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed crashes, added flying check
This commit is contained in:
parent
2043534003
commit
2b741a2913
4 changed files with 43 additions and 10 deletions
|
|
@ -79,7 +79,7 @@ class BanAPI{
|
|||
if(!$this->isOp($data["player"]->iusername)){
|
||||
$t = new Vector2($data["target"]->x, $data["target"]->z);
|
||||
$s = new Vector2($this->server->spawn["x"], $this->server->spawn["z"]);
|
||||
if($t->distance($s) <= $this->server->getProperty("spawn-protection") and $this->server->api->dhandle($event.".spawn", $data) !== true){
|
||||
if($t->distance($s) <= $this->server->api->getProperty("spawn-protection") and $this->server->api->dhandle($event.".spawn", $data) !== true){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,9 +104,10 @@ class ServerAPI{
|
|||
"spawn-protection" => 16,
|
||||
"view-distance" => 7,
|
||||
"max-players" => 20,
|
||||
"allow-flight" => false,
|
||||
"server-type" => "normal",
|
||||
"time-per-second" => 20,
|
||||
"gamemode" => 1,
|
||||
"gamemode" => CREATIVE,
|
||||
"pvp" => true,
|
||||
"difficulty" => 1,
|
||||
"generator" => "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue