mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Chat messages are shown on the server log
This commit is contained in:
parent
5e9e2b2a7d
commit
77da9d3a7c
2 changed files with 4 additions and 3 deletions
|
|
@ -77,7 +77,7 @@ class ChatAPI{
|
|||
if($target !== "Console"){
|
||||
$this->sendTo(false, "[".$sender." -> me] ".$mes, $target);
|
||||
}
|
||||
console("[".$sender." -> ".$target."] ".$mes);
|
||||
console("[INFO] [".$sender." -> ".$target."] ".$mes);
|
||||
break;
|
||||
}
|
||||
return $output;
|
||||
|
|
@ -85,7 +85,6 @@ class ChatAPI{
|
|||
|
||||
public function broadcast($message){
|
||||
$this->send(false, $message);
|
||||
console($message);
|
||||
}
|
||||
|
||||
public function sendTo($owner, $text, $player){
|
||||
|
|
@ -102,6 +101,9 @@ class ChatAPI{
|
|||
}
|
||||
}
|
||||
$message .= $text;
|
||||
if($whitelist === false and $blacklist === false){
|
||||
console("[INFO] ".$message);
|
||||
}
|
||||
$this->server->handle("server.chat", new Container($message, $whitelist, $blacklist));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue