mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-27 12:45:59 +01:00
Updated messages / version incrementation
This commit is contained in:
parent
25355f4906
commit
27da7070b2
@ -8,7 +8,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<artifactId>PlotSquared</artifactId>
|
||||
<version>2.6.1</version>
|
||||
<version>2.6.2</version>
|
||||
<name>PlotSquared</name>
|
||||
<packaging>jar</packaging>
|
||||
<build>
|
||||
|
@ -278,8 +278,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
if (PlotMain.hasPermission(event.getPlayer(), "plots.admin.destroy.road")) {
|
||||
return;
|
||||
}
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(player, C.NO_PERMISSION, "plots.admin.destroy.road");
|
||||
if (isCluster(loc)) { event.setCancelled(true); }
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
@ -343,8 +345,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
}
|
||||
} else if (!plot.hasRights(p)) {
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.build.other")) {
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.build.other");
|
||||
if (isCluster(loc)) { event.setCancelled(true); }
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -505,8 +509,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
if (PlotMain.hasPermission(player, "plots.admin.interact.road")) {
|
||||
return;
|
||||
}
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(player, C.NO_PERMISSION, "plots.admin.interact.road");
|
||||
if (isCluster(loc)) { event.setCancelled(true); }
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
@ -573,8 +579,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
}
|
||||
} else if (!plot.hasRights(p)) {
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.build.other")) {
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.build.other");
|
||||
if (isCluster(loc)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -642,8 +650,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
if (PlotMain.hasPermission(p, "plots.admin.build.other")) {
|
||||
return;
|
||||
}
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.build.other");
|
||||
if (isCluster(loc)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -704,8 +714,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
if (PlotMain.hasPermission(p, "plots.admin.build.other")) {
|
||||
return;
|
||||
}
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.build.other");
|
||||
if (isCluster(loc)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -734,8 +746,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.build.other")) {
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.build.other");
|
||||
if (isCluster(loc)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -766,8 +780,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.destroy.other")) {
|
||||
if (isCluster(l)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.destroy.other");
|
||||
if (isCluster(l)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -807,8 +823,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.interact.other")) {
|
||||
if (isCluster(l)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.interact.other");
|
||||
if (isCluster(l)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -843,8 +861,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.vehicle.break.other")) {
|
||||
if (isCluster(l)) {
|
||||
e.setCancelled(true);
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.vehicle.break.other");
|
||||
if (isCluster(l)) { e.setCancelled(true); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -898,8 +918,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.pve.other")) {
|
||||
if (isCluster(l)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.pve.other");
|
||||
if (isCluster(l)) { e.setCancelled(true); }
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -926,8 +948,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
}
|
||||
} else if (!plot.hasRights(p)) {
|
||||
if (!PlotMain.hasPermission(p, "plots.admin.projectile.other")) {
|
||||
if (isCluster(l)) {
|
||||
PlayerFunctions.sendMessage(p, C.NO_PERMISSION, "plots.admin.projectile.other");
|
||||
if (isCluster(l)) { e.setHatching(false); }
|
||||
e.setHatching(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -965,8 +989,10 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
if (!PlotMain.hasPermission(player, "plots.admin.build.road")) {
|
||||
if (isCluster(loc)) {
|
||||
PlayerFunctions.sendMessage(player, C.NO_PERMISSION, "plots.admin.build.road");
|
||||
if (isCluster(loc)) { event.setCancelled(true); }
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user