mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Merge pull request #1792 from Opachl/PS-#1791
fix: p visit issue in latest builds
This commit is contained in:
commit
6c06e48a1f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user