mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Added OPs and permission checks
This commit is contained in:
@@ -77,7 +77,9 @@ class ConsoleAPI{
|
||||
break;
|
||||
case "status":
|
||||
case "lag":
|
||||
$this->server->debugInfo(true);
|
||||
if(!($issuer instanceof Player) and $issuer === "console"){
|
||||
$this->server->debugInfo(true);
|
||||
}
|
||||
$info = $this->server->debugInfo();
|
||||
$output .= "TPS: ".$info["tps"].", Memory usage: ".$info["memory_usage"]." (Peak ".$info["memory_peak_usage"].")\n";
|
||||
break;
|
||||
@@ -192,7 +194,7 @@ class ConsoleAPI{
|
||||
if($this->loop->line !== false){
|
||||
$line = trim($this->loop->line);
|
||||
$this->loop->line = false;
|
||||
$this->run($line);
|
||||
$this->run($line, "console");
|
||||
}else{
|
||||
$this->loop->notify();
|
||||
}
|
||||
|
Reference in New Issue
Block a user