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

@ -90,7 +90,7 @@ public class PlayerEvents extends PlotListener implements Listener {
return;
}
if (Settings.Redstone.DISABLE_OFFLINE) {
if (UUIDHandler.getPlayer(plot.owner) == null) {
if (UUIDHandler.getPlayer(plot.getOwner()) == null) {
boolean disable = true;
for (UUID trusted : plot.getTrusted()) {
if (UUIDHandler.getPlayer(trusted) != null) {