From 799cb7845008d345043c5b402dad016aefdaa788 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Tue, 17 Aug 2021 00:00:00 +0200 Subject: [PATCH] Support for longer and including dots player names --- .../main/java/fr/pandacube/lib/core/players/PlayerFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/fr/pandacube/lib/core/players/PlayerFinder.java b/Core/src/main/java/fr/pandacube/lib/core/players/PlayerFinder.java index f2fae7a..028ef4d 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/players/PlayerFinder.java +++ b/Core/src/main/java/fr/pandacube/lib/core/players/PlayerFinder.java @@ -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 {