Creates #32
This commit is contained in:
Sauilitired 2014-11-02 20:11:06 +01:00
parent 291c290f15
commit c883f2f7d9
2 changed files with 10 additions and 2 deletions

View File

@ -1289,7 +1289,9 @@ public class PlotMain extends JavaPlugin {
"instabreak",
"drop-protection",
"forcefield",
"titles"
"titles",
"pve",
"pvp"
);
List<String> intervalFlags = Arrays.asList(
"feed",

View File

@ -730,9 +730,15 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
if (!PlotMain.hasPermission(p,"plots.admin")) {
PlayerFunctions.sendMessage(p, C.NO_PLOT_PERMS);
e.setCancelled(true);
return;
}
}
else
if(aPlr && !booleanFlag(plot, "pvp"))
return;
if(!aPlr && !booleanFlag(plot, "pve"))
return;
assert plot != null;
if (!plot.hasRights(p)) {
if (!PlotMain.hasPermission(p,"plots.admin")) {
PlayerFunctions.sendMessage(p, C.NO_PLOT_PERMS);