Add server-plot flag, and option to disable on-claim teleportation

This commit is contained in:
Sauilitired
2019-03-30 13:27:18 +01:00
parent 08ebf57c90
commit ae57264487
16 changed files with 69 additions and 31 deletions

View File

@ -217,7 +217,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
}
final Plot plot = area.getOwnedPlot(id);
if (plot != null) {
if (PlotPlayer.wrap(plot.owner) == null) {
if (!MainUtil.isServerOwned(plot) || PlotPlayer.wrap(plot.getOwner()) == null) {
if (world.getKeepSpawnInMemory()) {
world.setKeepSpawnInMemory(false);
return;