mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
fix: p visit issue in latest builds
p visit issue in latest builds #1791
This commit is contained in:
parent
61e045aa50
commit
70a82d9fc6
@ -88,6 +88,15 @@ public class Visit extends Command {
|
|||||||
C.COMMAND_SYNTAX.send(player, getUsage());
|
C.COMMAND_SYNTAX.send(player, getUsage());
|
||||||
return;
|
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;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
unsorted = PS.get().getPlots(player);
|
unsorted = PS.get().getPlots(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user