mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Return output of commands on ConsoleAPI::run() method
This commit is contained in:
parent
e0a59486eb
commit
bc80c01348
@ -186,7 +186,7 @@ class ConsoleAPI{
|
||||
return;
|
||||
}
|
||||
if($issuer instanceof Player){
|
||||
console("[INFO] \"".$issuer->username."\" issued server command: $alias /$cmd ".implode(" ", $params));
|
||||
console("[INFO] \x1b[33m".$issuer->username."\x1b[0m issued server command: ".ltrim("$alias ")."/$cmd ".implode(" ", $params));
|
||||
}else{
|
||||
console("[INFO] Issued server command: ".ltrim("$alias ")."/$cmd ".implode(" ", $params));
|
||||
}
|
||||
@ -207,8 +207,8 @@ class ConsoleAPI{
|
||||
foreach($mes as $m){
|
||||
console("[CMD] ".$m);
|
||||
}
|
||||
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user