mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 12:48:32 +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"){
|
if($target !== "Console" and $target !== "Rcon"){
|
||||||
$this->sendTo(false, "[".$sender." -> me] ".$mes, $target);
|
$this->sendTo(false, "[".$sender." -> me] ".$mes, $target);
|
||||||
}
|
}
|
||||||
console("[INFO] [".$sender." -> ".$target."] ".$mes);
|
if($target === "Console" or $sender === "Console"){
|
||||||
|
console("[INFO] [".$sender." -> ".$target."] ".$mes);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user