diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Visit.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Visit.java index efeca0826..ffc9dbd22 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Visit.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Visit.java @@ -70,10 +70,10 @@ public class Visit extends SubCommand { } catch (final Exception e) { return sendMessage(plr, C.NOT_VALID_NUMBER); } - if ((i < 0) || (i >= plots.size())) { + if ((i < 1) || (i > plots.size())) { return sendMessage(plr, C.NOT_VALID_NUMBER); } - MainUtil.teleportPlayer(plr, plr.getLocation(), plots.get(i)); + MainUtil.teleportPlayer(plr, plr.getLocation(), plots.get(i - 1)); return true; } }