mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 14:38:55 +00:00
Merge branch 'main' into feature/admin-command
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user