mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
parent
291c290f15
commit
c883f2f7d9
@ -1289,7 +1289,9 @@ public class PlotMain extends JavaPlugin {
|
||||
"instabreak",
|
||||
"drop-protection",
|
||||
"forcefield",
|
||||
"titles"
|
||||
"titles",
|
||||
"pve",
|
||||
"pvp"
|
||||
);
|
||||
List<String> intervalFlags = Arrays.asList(
|
||||
"feed",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user