mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
more canonical codestyle
This commit is contained in:
parent
27554d29bd
commit
2b90f6499e
30 changed files with 1388 additions and 1689 deletions
|
|
@ -36,7 +36,7 @@ class EntityAPI{
|
|||
$output = "";
|
||||
switch($cmd){
|
||||
case "entcnt":
|
||||
return "Total amount of entities: " . count($this->entities);
|
||||
return "Total amount of entities: ". count($this->entities);
|
||||
case "summon":
|
||||
case "spawnmob":
|
||||
if(!($issuer instanceof Player)){
|
||||
|
|
@ -81,7 +81,7 @@ class EntityAPI{
|
|||
$this->summon($pos, ENTITY_MOB, $type, ["IsBaby" => $isBaby]);
|
||||
}
|
||||
|
||||
return "$amount " . ($isBaby ? "Baby " : "") . "$mobName(s) spawned in $x, $y, $z.";
|
||||
return "$amount ".($isBaby ? "Baby " : "")."$mobName(s) spawned in $x, $y, $z.";
|
||||
}
|
||||
elseif(strtolower($args[1]) == "baby"){//summon <mob> [baby]
|
||||
$this->summon($pos, ENTITY_MOB, $type, ["IsBaby" => 1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue