From 4f464439e5d96dbf8b6b72b08882272d3c5f692f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 10 Jan 2018 17:22:46 +1100 Subject: [PATCH] * --- .../java/com/intellectualcrafters/plot/commands/Visit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 47c555b90..2a1cc3c99 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java @@ -58,7 +58,7 @@ public class Visit extends Command { } page = Integer.parseInt(args[2]); case 2: - if (!MathMan.isInteger(args[1])) { + if (page != Integer.MIN_VALUE || !MathMan.isInteger(args[1])) { sortByArea = PS.get().getPlotAreaByString(args[1]); if (sortByArea == null) { C.NOT_VALID_NUMBER.send(player, "(1, ∞)"); @@ -76,7 +76,7 @@ public class Visit extends Command { } page = Integer.parseInt(args[1]); case 1: - UUID user = (args.length == 2 || !MathMan.isInteger(args[0])) ? UUIDHandler.getUUIDFromString(args[0]) : null; + UUID user = (args.length == 2 || (page != Integer.MIN_VALUE || !MathMan.isInteger(args[0]))) ? UUIDHandler.getUUIDFromString(args[0]) : null; if (page == Integer.MIN_VALUE && user == null && MathMan.isInteger(args[0])) { page = Integer.parseInt(args[0]); unsorted = PS.get().getBasePlots(player);