From 72f30d8aef5fac3878840ce21a2a82ce7b39b5d9 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 2 May 2018 00:43:27 +1000 Subject: [PATCH] usernames can be 2 characters --- .../main/java/com/intellectualcrafters/plot/commands/Visit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java index c0b183cc2..140ffdb65 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java @@ -76,7 +76,7 @@ public class Visit extends Command { } page = Integer.parseInt(args[1]); case 1: - UUID user = args[0].length() >= 4 ? UUIDHandler.getUUIDFromString(args[0]) : null; + UUID user = args[0].length() >= 2 ? UUIDHandler.getUUIDFromString(args[0]) : null; if (user != null && !PS.get().hasPlot(user)) user = null; if (page == Integer.MIN_VALUE && user == null && MathMan.isInteger(args[0])) { page = Integer.parseInt(args[0]);