From 154bad6188e6a3806e9af7b019f4f568e9c2b04e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 28 Apr 2018 21:53:39 +1000 Subject: [PATCH] * --- .../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 12adc6c38..c0b183cc2 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 = UUIDHandler.getUUIDFromString(args[0]); + UUID user = args[0].length() >= 4 ? 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]);