mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Return output of commands on ConsoleAPI::run() method
This commit is contained in:
parent
e0a59486eb
commit
bc80c01348
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue