mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Merge pull request #1792 from Opachl/PS-#1791
fix: p visit issue in latest builds
This commit is contained in:
commit
6c06e48a1f
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue