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",
|
"instabreak",
|
||||||
"drop-protection",
|
"drop-protection",
|
||||||
"forcefield",
|
"forcefield",
|
||||||
"titles"
|
"titles",
|
||||||
|
"pve",
|
||||||
|
"pvp"
|
||||||
);
|
);
|
||||||
List<String> intervalFlags = Arrays.asList(
|
List<String> intervalFlags = Arrays.asList(
|
||||||
"feed",
|
"feed",
|
||||||
|
@ -730,10 +730,16 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
if (!PlotMain.hasPermission(p,"plots.admin")) {
|
if (!PlotMain.hasPermission(p,"plots.admin")) {
|
||||||
PlayerFunctions.sendMessage(p, C.NO_PLOT_PERMS);
|
PlayerFunctions.sendMessage(p, C.NO_PLOT_PERMS);
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (!plot.hasRights(p)) {
|
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")) {
|
if (!PlotMain.hasPermission(p,"plots.admin")) {
|
||||||
PlayerFunctions.sendMessage(p, C.NO_PLOT_PERMS);
|
PlayerFunctions.sendMessage(p, C.NO_PLOT_PERMS);
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user