mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +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);
|
$this->close("Incorrect protocol #".$packet->protocol1, false);
|
||||||
return;
|
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);
|
$this->close("Bad username", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user