diff --git a/src/Player.php b/src/Player.php index 966f9cf5b..35f392314 100644 --- a/src/Player.php +++ b/src/Player.php @@ -1311,7 +1311,7 @@ class Player{ $this->close("Incorrect protocol #".$packet->protocol1, false); return; } - if(preg_match('#[^a-zA-Z0-9_]#', $packet->username) > 0 or $packet->username === ""){ + if(preg_match('#[^a-zA-Z0-9_]#', $this->username) > 0 or $this->username === "" or $this->iusername === "rcon" or $this->iusername === "console"){ $this->close("Bad username", false); return; }