Merge pull request #277 from MinelinkNetwork/fix-worldedit

Allow owners and helpers to use WorldEdit //up in their plots
This commit is contained in:
boy0001 2015-04-17 12:45:10 +10:00
commit 3d30e3abbc

View File

@ -134,7 +134,7 @@ public class WEListener implements Listener {
}
if (this.restrictedcmds.contains(cmd)) {
final Plot plot = MainUtil.getPlot(pp.getLocation());
if ((plot == null) || !(plot.helpers.contains(DBFunc.everyone) || plot.helpers.contains(pp.getUUID()))) {
if ((plot == null) || (!plot.isOwner(pp.getUUID()) && !plot.helpers.contains(DBFunc.everyone) && !plot.helpers.contains(pp.getUUID()))) {
e.setCancelled(true);
}
return;