mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
typo fix
This commit is contained in:
parent
165388c8ae
commit
761ac69a20
13 changed files with 7 additions and 23 deletions
|
|
@ -337,7 +337,6 @@ class BlockAPI{
|
|||
$output .= "Giving ".$item->count." of ".$item->getName()." (".$item->getID().":".$item->getMetadata().") to ".$issuer->username;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class ConsoleAPI{
|
|||
$end = strlen($line);
|
||||
}
|
||||
$cmd = strtolower(substr($line, 0, $end));
|
||||
$params = (string) substr($line, $end + 1);
|
||||
$params = substr($line, $end + 1);
|
||||
if(isset($this->alias[$cmd])){
|
||||
return $this->run($this->alias[$cmd] . ($params !== "" ? " " . $params : ""), $issuer, $cmd);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,6 @@ class LevelAPI{
|
|||
}
|
||||
$issuer->entity->level->setSpawn(new Vector3($issuer->entity->x, $issuer->entity->y, $issuer->entity->z));
|
||||
return ("Spawn set!");
|
||||
break;
|
||||
case "save-all":
|
||||
$output .= "Saving...\n";
|
||||
foreach($this->server->clients as $p){
|
||||
|
|
|
|||
|
|
@ -218,7 +218,6 @@ class PlayerAPI{
|
|||
}else{
|
||||
return "Usage: /$cmd [player]\n";
|
||||
}
|
||||
break;
|
||||
case "list":
|
||||
$output .= "There are " . count($this->server->clients) . "/" . $this->server->maxClients . " players online:\n";
|
||||
if(count($this->server->clients) == 0){
|
||||
|
|
@ -228,7 +227,6 @@ class PlayerAPI{
|
|||
$output .= $c->username . ", ";
|
||||
}
|
||||
return substr($output, 0, -2) . "\n";
|
||||
break;
|
||||
case "loc":
|
||||
if(!($issuer instanceof Player)) return "Please run this command in-game.";
|
||||
$x = round($issuer->entity->x, 1, PHP_ROUND_HALF_UP);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ class TimeAPI{
|
|||
$output = "";
|
||||
switch($cmd){
|
||||
case "time":
|
||||
$level = false;
|
||||
if($issuer instanceof Player){
|
||||
$level = $issuer->level;
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue