Update src/main/java/net/ardakaz/griefalert/GriefAlert.java
removed some unneeded cancel events
This commit is contained in:
@@ -280,7 +280,6 @@ public class GriefAlert extends JavaPlugin implements Listener {
|
|||||||
int z = armorStand.getLocation().getBlockZ();
|
int z = armorStand.getLocation().getBlockZ();
|
||||||
String worldName = armorStand.getWorld().getName();
|
String worldName = armorStand.getWorld().getName();
|
||||||
if (isLocationIgnored(x, y, z, worldName)) {
|
if (isLocationIgnored(x, y, z, worldName)) {
|
||||||
event.setCancelled(true);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String playerName = player.getName();
|
String playerName = player.getName();
|
||||||
@@ -301,7 +300,6 @@ public class GriefAlert extends JavaPlugin implements Listener {
|
|||||||
int z = armorStand.getLocation().getBlockZ();
|
int z = armorStand.getLocation().getBlockZ();
|
||||||
String worldName = armorStand.getWorld().getName();
|
String worldName = armorStand.getWorld().getName();
|
||||||
if (isLocationIgnored(x, y, z, worldName)) {
|
if (isLocationIgnored(x, y, z, worldName)) {
|
||||||
event.setCancelled(true);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String target = inspectBlock(armorStand.getLocation().getBlock(), player);
|
String target = inspectBlock(armorStand.getLocation().getBlock(), player);
|
||||||
|
|||||||
Reference in New Issue
Block a user