From 21c6eeef11990fdddfa750ce41a23707a74437ed Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 6 Jun 2015 17:57:07 +0200 Subject: [PATCH] Fixed A-Z range --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 541b84691..35c5daf2b 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1629,7 +1629,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade for($i = 0; $i < $len and $valid; ++$i){ $c = ord($packet->username{$i}); if(($c >= ord("a") and $c <= ord("z")) or - ($c >= ord("Z") and $c <= ord("Z")) or + ($c >= ord("A") and $c <= ord("Z")) or ($c >= ord("0") and $c <= ord("9")) or $c === "_" ){ continue;