mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Better fix for #1201 (case-insensitive)
This commit is contained in:
parent
89a0e84404
commit
a373a581c5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user