mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fix teleport to "*"
This commit is contained in:
parent
3cea734b9b
commit
ae0ee1ebdd
@ -48,6 +48,7 @@ import com.plotsquared.core.plot.PlotAreaTerrainType;
|
|||||||
import com.plotsquared.core.plot.PlotAreaType;
|
import com.plotsquared.core.plot.PlotAreaType;
|
||||||
import com.plotsquared.core.plot.PlotId;
|
import com.plotsquared.core.plot.PlotId;
|
||||||
import com.plotsquared.core.plot.world.PlotAreaManager;
|
import com.plotsquared.core.plot.world.PlotAreaManager;
|
||||||
|
import com.plotsquared.core.plot.world.SinglePlotArea;
|
||||||
import com.plotsquared.core.queue.GlobalBlockQueue;
|
import com.plotsquared.core.queue.GlobalBlockQueue;
|
||||||
import com.plotsquared.core.queue.QueueCoordinator;
|
import com.plotsquared.core.queue.QueueCoordinator;
|
||||||
import com.plotsquared.core.setup.PlotAreaBuilder;
|
import com.plotsquared.core.setup.PlotAreaBuilder;
|
||||||
@ -660,7 +661,11 @@ public class Area extends SubCommand {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Location center;
|
Location center;
|
||||||
if (area.getType() != PlotAreaType.PARTIAL) {
|
if (area instanceof SinglePlotArea) {
|
||||||
|
((SinglePlotArea) area).loadWorld(PlotId.of(0, 0));
|
||||||
|
center = this.worldUtil.getSpawn(PlotId.of(0, 0).toSeparatedString("_"));
|
||||||
|
player.teleport(center, TeleportCause.COMMAND);
|
||||||
|
} else if (area.getType() != PlotAreaType.PARTIAL) {
|
||||||
center = this.worldUtil.getSpawn(area.getWorldName());
|
center = this.worldUtil.getSpawn(area.getWorldName());
|
||||||
player.teleport(center, TeleportCause.COMMAND);
|
player.teleport(center, TeleportCause.COMMAND);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user