Merge pull request #1792 from Opachl/PS-#1791

fix: p visit issue in latest builds
This commit is contained in:
Alexander Söderberg 2017-12-07 08:54:36 +01:00 committed by GitHub
commit 6c06e48a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);