blockbreak raids

This commit is contained in:
Aubri Seebauer committed 2023-04-20 16:47:52 -04:00
1 parent c281d5dd91
commit 83590b4209
1 file changed
+9
@@ -50,6 +50,15 @@ public class BlockBreakListener implements Listener {
if (siege.getTown() == WorldCoord.parseWorldCoord(block).getTownOrNull()) {
p.sendMessage(Helper.color("&cYou can not break blocks during sieges"));
event.setCancelled(true);
return;
}
}
for (final Raid raid : RaidData.getRaids()) {
if (raid.getRaidedTown() == WorldCoord.parseWorldCoord(block).getTownOrNull()) {
p.sendMessage(Helper.color("&cYou can not break blocks during raids"));
event.setCancelled(true);
return;
}
}
}