mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Added localized invalid name message
This commit is contained in:
parent
928660d59a
commit
31387ff0be
@ -1380,7 +1380,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
}
|
||||
|
||||
if(strpos($packet->username, "\x00") !== false or preg_match('#^[a-zA-Z0-9_]{3,16}$#', $packet->username) == 0 or $this->username === "" or $this->iusername === "rcon" or $this->iusername === "console" or strlen($packet->username) > 16 or strlen($packet->username) < 3){
|
||||
$this->close("", "Bad username");
|
||||
$this->close("", "disconnectionScreen.invalidName");
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ed9a06a6d2bb491782ec2c8b4310aa683cfdf8af
|
||||
Subproject commit 2c4b523670bfa6d53b28774325f94c9c0d51749c
|
Loading…
x
Reference in New Issue
Block a user