Fix for /plot weanywhere

This commit is contained in:
boy0001 2015-01-13 03:12:58 +11:00
parent f70b7c3f93
commit f119f6996d

View File

@ -211,7 +211,7 @@ import java.util.Set;
if ((f.getBlockX() != t.getBlockX()) || (f.getBlockZ() != t.getBlockZ())) { if ((f.getBlockX() != t.getBlockX()) || (f.getBlockZ() != t.getBlockZ())) {
final PlotId idF = PlayerFunctions.getPlot(f); final PlotId idF = PlayerFunctions.getPlot(f);
final PlotId idT = PlayerFunctions.getPlot(t); final PlotId idT = PlayerFunctions.getPlot(t);
if (PlotMain.hasPermission(e.getPlayer(), "plots.worldedit.bypass")) { if ((!PWE.hasMask(e.getPlayer())) && PlotMain.hasPermission(e.getPlayer(), "plots.worldedit.bypass")) {
return; return;
} }
if ((idT != null) && !(idF == idT)) { if ((idT != null) && !(idF == idT)) {