mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
hopefully replaced spaces with tabs everywhere
This commit is contained in:
parent
ed4f820ff3
commit
89eb7097a3
42 changed files with 324 additions and 324 deletions
|
|
@ -145,11 +145,11 @@ class LevelAPI{
|
|||
if($generator !== false and class_exists($generator)){
|
||||
$generator = new $generator($options);
|
||||
}else{
|
||||
$generator = match (strtoupper($this->server->api->getProperty("level-type"))) {
|
||||
"FLAT" => new SuperflatGenerator($options),
|
||||
"VANILLA" => new VanillaGenerator($options),
|
||||
default => new TemporalGenerator($options),
|
||||
};
|
||||
$generator = match (strtoupper($this->server->api->getProperty("level-type"))) {
|
||||
"FLAT" => new SuperflatGenerator($options),
|
||||
"VANILLA" => new VanillaGenerator($options),
|
||||
default => new TemporalGenerator($options),
|
||||
};
|
||||
}
|
||||
$gen = new WorldGenerator($generator, $name, $seed === false ? Utils::readInt(Utils::getRandomBytes(4, false)) : (int) $seed);
|
||||
$gen->generate();
|
||||
|
|
|
|||
|
|
@ -57,18 +57,18 @@ class PlayerAPI{
|
|||
}
|
||||
}
|
||||
}else{
|
||||
$message = match ($data["cause"]) {
|
||||
"cactus" => " was pricked to death",
|
||||
"lava" => " tried to swim in lava",
|
||||
"fire" => " went up in flames",
|
||||
"burning" => " burned to death",
|
||||
"suffocation" => " suffocated in a wall",
|
||||
"water" => " drowned",
|
||||
"void" => " fell out of the world",
|
||||
"fall" => " hit the ground too hard",
|
||||
"explosion" => " blew up",
|
||||
default => " died",
|
||||
};
|
||||
$message = match ($data["cause"]) {
|
||||
"cactus" => " was pricked to death",
|
||||
"lava" => " tried to swim in lava",
|
||||
"fire" => " went up in flames",
|
||||
"burning" => " burned to death",
|
||||
"suffocation" => " suffocated in a wall",
|
||||
"water" => " drowned",
|
||||
"void" => " fell out of the world",
|
||||
"fall" => " hit the ground too hard",
|
||||
"explosion" => " blew up",
|
||||
default => " died",
|
||||
};
|
||||
}
|
||||
$this->server->api->chat->broadcast($data["player"]->username . $message);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue