Support for longer and including dots player names

This commit is contained in:
Marc Baloup 2021-08-17 00:00:00 +02:00
parent ac2df99994
commit 799cb78450
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ public class PlayerFinder {
public static boolean isValidPlayerName(String name) {
if (name == null) return false;
return name.matches("[0-9a-zA-Z_]{2,16}");
return name.matches("[0-9a-zA-Z_.]{2,20}");
}
public static SQLPlayer getDBPlayer(UUID id) throws Exception {