From 9ee61ed3ad1495aef8d132b4b7f67ddc12b01baf Mon Sep 17 00:00:00 2001 From: kotyara <62548070+kotyaralih@users.noreply.github.com> Date: Tue, 8 Mar 2022 14:46:50 +0500 Subject: [PATCH] Update Player.php --- src/Player.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index f59204f0..7e653fc0 100755 --- a/src/Player.php +++ b/src/Player.php @@ -2007,7 +2007,11 @@ class Player{ if(trim($packet->message) != "" and strlen($packet->message) <= 255){ $message = $packet->message; if($message{0} === "/"){ //Command - console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . " issued a command: " . FORMAT_AQUA . $message); + if($this instanceof Player){ + console("[DEBUG] ".FORMAT_AQUA.$this->username.FORMAT_RESET." issued server command: ".$message); + }else{ + console("[DEBUG] ".FORMAT_YELLOW."*".$this.FORMAT_RESET." issued server command: ".$message); + } $this->server->api->console->run(substr($message, 1), $this); }else{ $data = array("player" => $this, "message" => $message);