mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +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
@ -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…
x
Reference in New Issue
Block a user