Added localized invalid name message

This commit is contained in:
Shoghi Cervantes 2015-04-13 11:36:15 +02:00
parent 928660d59a
commit 31387ff0be
2 changed files with 2 additions and 2 deletions

View File

@ -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