Merge branch 'main' into feature/admin-command

This commit is contained in:
Isaac authored and GitHub committed 2023-04-24 23:29:28 +01:00
commit cdbfb50a67
4 files changed
+2 -5

No files matched your search

@@ -147,7 +147,7 @@ public class Raid {
public Raid(final War war, final Town raidedTown, final Town gatherTown,
final boolean side1AreRaiders, OfflinePlayer owner) {
this.bukkitId = new int[1];
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
this.war = war;
this.raidTicks = 0;
this.raidedTown = raidedTown;
@@ -248,6 +248,7 @@ public class RaidData {
return -1;
}
long lastRaidTime = war.getLastRaidTime();
//6 hour raid cooldown for war
if ((System.currentTimeMillis() / 1000) - (side.equals(war.getSide1()) ? war.getLastRaidTimeSide1() : war.getLastRaidTimeSide2()) <= 21600) {
return 0;