From 89442a0e77f59fcdc12d24f1f45d49b0b96b8b5d Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 22 May 2016 07:13:59 +1000 Subject: [PATCH] Fix visit --- .../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 95eac1591..ccc04ab5d 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java @@ -42,7 +42,7 @@ public class Visit extends SubCommand { } page = Integer.parseInt(args[1]); case 1: - UUID user = UUIDHandler.getCachedUUID(args[0], null); + UUID user = (args.length == 2 || !MathMan.isInteger(args[0])) ? UUIDHandler.getCachedUUID(args[0], null) : null; if (page == Integer.MIN_VALUE && user == null && MathMan.isInteger(args[0])) { page = Integer.parseInt(args[0]); unsorted = PS.get().getBasePlots(player);