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

View File

@ -151,7 +151,7 @@ public class PlayerFinder {
public static boolean isValidPlayerName(String name) { public static boolean isValidPlayerName(String name) {
if (name == null) return false; 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 { public static SQLPlayer getDBPlayer(UUID id) throws Exception {