mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
Merge branch 'main' into feature/admin-command
This commit is contained in:
4 files changed
+2
-5
No files matched your search
@@ -1,3 +0,0 @@
|
|||||||
MaxID: 0
|
|
||||||
|
|
||||||
Raids:
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
id:
|
|
||||||
@@ -147,7 +147,7 @@ public class Raid {
|
|||||||
public Raid(final War war, final Town raidedTown, final Town gatherTown,
|
public Raid(final War war, final Town raidedTown, final Town gatherTown,
|
||||||
final boolean side1AreRaiders, OfflinePlayer owner) {
|
final boolean side1AreRaiders, OfflinePlayer owner) {
|
||||||
this.bukkitId = new int[1];
|
this.bukkitId = new int[1];
|
||||||
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
||||||
this.war = war;
|
this.war = war;
|
||||||
this.raidTicks = 0;
|
this.raidTicks = 0;
|
||||||
this.raidedTown = raidedTown;
|
this.raidedTown = raidedTown;
|
||||||
|
|||||||
@@ -248,6 +248,7 @@ public class RaidData {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long lastRaidTime = war.getLastRaidTime();
|
||||||
//6 hour raid cooldown for war
|
//6 hour raid cooldown for war
|
||||||
if ((System.currentTimeMillis() / 1000) - (side.equals(war.getSide1()) ? war.getLastRaidTimeSide1() : war.getLastRaidTimeSide2()) <= 21600) {
|
if ((System.currentTimeMillis() / 1000) - (side.equals(war.getSide1()) ? war.getLastRaidTimeSide1() : war.getLastRaidTimeSide2()) <= 21600) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user