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

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