diff --git a/src/API/ChatAPI.php b/src/API/ChatAPI.php index 9a8485c5..46ec432e 100644 --- a/src/API/ChatAPI.php +++ b/src/API/ChatAPI.php @@ -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)); } } \ No newline at end of file diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index 6918965c..66639abb 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -274,7 +274,6 @@ class PlayerAPI{ public function add($CID){ if(isset($this->server->clients[$CID])){ $player = $this->server->clients[$CID]; - console("[INFO] Player \x1b[33m".$player->username."\x1b[0m connected from \x1b[36m".$player->ip.":".$player->port."\x1b[0m"); $player->data = $this->getOffline($player->username); $player->gamemode = $player->data->get("gamemode"); $this->server->query("INSERT OR REPLACE INTO players (clientID, ip, port, name) VALUES (".$player->clientID.", '".$player->ip."', ".$player->port.", '".strtolower($player->username)."');");