From 70a82d9fc6b209d3241c32e86260cb7c08c1d682 Mon Sep 17 00:00:00 2001 From: Opachl Date: Wed, 6 Dec 2017 21:40:26 +0100 Subject: [PATCH] fix: p visit issue in latest builds p visit issue in latest builds #1791 --- .../com/intellectualcrafters/plot/commands/Visit.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 d71b768d7..77467c98b 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Visit.java @@ -88,6 +88,15 @@ public class Visit extends Command { C.COMMAND_SYNTAX.send(player, getUsage()); return; } + + // we found nothing we now check for a combined command arg + if((args[0].contains(";") || args[0].contains(",")) && (unsorted == null || unsorted.isEmpty())) { + Plot plot = MainUtil.getPlotFromString(player, args[0], true); + if (plot != null) { + unsorted = Collections.singletonList(plot.getBasePlot(false)); + } + } + break; case 0: unsorted = PS.get().getPlots(player);