Update src/main/java/net/ardakaz/griefalert/GriefAlert.java

removed some unneeded cancel events
This commit is contained in:
2026-06-27 10:48:19 +00:00
parent 5913a8060a
commit a61436effa

View File

@@ -280,7 +280,6 @@ public class GriefAlert extends JavaPlugin implements Listener {
int z = armorStand.getLocation().getBlockZ();
String worldName = armorStand.getWorld().getName();
if (isLocationIgnored(x, y, z, worldName)) {
event.setCancelled(true);
return;
}
String playerName = player.getName();
@@ -301,7 +300,6 @@ public class GriefAlert extends JavaPlugin implements Listener {
int z = armorStand.getLocation().getBlockZ();
String worldName = armorStand.getWorld().getName();
if (isLocationIgnored(x, y, z, worldName)) {
event.setCancelled(true);
return;
}
String target = inspectBlock(armorStand.getLocation().getBlock(), player);