mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-01-19 16:59:36 +01:00
should fix #106 (testing needed)
This commit is contained in:
parent
aabbd851ec
commit
ee804a8148
@ -170,16 +170,20 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enteredPlot(f, q)) {
|
Plot plot = getCurrentPlot(q);
|
||||||
final Plot plot = getCurrentPlot(q);
|
if (plot != null) {
|
||||||
final boolean admin = PlotMain.hasPermission(player, "plots.admin.entry.denied");
|
if (!plot.equals(getCurrentPlot(f))) {
|
||||||
if (plot.deny_entry(player) && !admin) {
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
plotEntry(player, plot);
|
if (plot.deny_entry(player)) {
|
||||||
|
if (!PlotMain.hasPermission(player, "plots.admin.entry.denied")) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (leftPlot(f, q)) {
|
} else if (leftPlot(f, q)) {
|
||||||
final Plot plot = getCurrentPlot(event.getFrom());
|
plot = getCurrentPlot(event.getFrom());
|
||||||
plotExit(player, plot);
|
plotExit(player, plot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user