mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Only show private messages in console when the sender or the target is the console
This commit is contained in:
parent
894325aef6
commit
7cf662fb81
1 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,9 @@ class ChatAPI{
|
|||
if($target !== "Console" and $target !== "Rcon"){
|
||||
$this->sendTo(false, "[".$sender." -> me] ".$mes, $target);
|
||||
}
|
||||
console("[INFO] [".$sender." -> ".$target."] ".$mes);
|
||||
if($target === "Console" or $sender === "Console"){
|
||||
console("[INFO] [".$sender." -> ".$target."] ".$mes);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue