This commit is contained in:
Sunch 2025-01-12 20:26:18 +08:00
parent 165388c8ae
commit 761ac69a20
13 changed files with 7 additions and 23 deletions

View file

@ -337,7 +337,6 @@ class BlockAPI{
$output .= "Giving ".$item->count." of ".$item->getName()." (".$item->getID().":".$item->getMetadata().") to ".$issuer->username;
break;
}
break;
}
return $output;
}

View file

@ -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);
}

View file

@ -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){

View file

@ -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);

View file

@ -22,7 +22,6 @@ class TimeAPI{
$output = "";
switch($cmd){
case "time":
$level = false;
if($issuer instanceof Player){
$level = $issuer->level;
}else{