primitive last raid time

This commit is contained in:
Aubri Seebauer committed 2023-04-18 15:22:10 -04:00
1 parent 7e83d66417
commit 011f54d4d6
2 files changed
+5 -4

No files matched your search

@@ -102,7 +102,7 @@ public class Raid {
final boolean side1AreRaiders, final int raidTicks, Player owner) { final boolean side1AreRaiders, final int raidTicks, Player 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 = raidTicks; this.raidTicks = raidTicks;
this.raidedTown = raidedTown; this.raidedTown = raidedTown;
@@ -144,10 +144,11 @@ 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, Player owner) { final boolean side1AreRaiders, Player 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;
this.gatherTown = gatherTown;
this.owner = owner; this.owner = owner;
//AttackSide-Town //AttackSide-Town
@@ -22,7 +22,7 @@ public class War {
// References // References
private ArrayList<Siege> sieges = new ArrayList<Siege>(); private ArrayList<Siege> sieges = new ArrayList<Siege>();
private ArrayList<Raid> raids = new ArrayList<Raid>(); private ArrayList<Raid> raids = new ArrayList<Raid>();
private Long lastRaidTime; private long lastRaidTime = 0;
/** /**
* War Constructor * War Constructor
@@ -221,7 +221,7 @@ public class War {
this.lastRaidTime = lastRaidTime; this.lastRaidTime = lastRaidTime;
} }
public Long getLastRaidTime() { public long getLastRaidTime() {
return this.lastRaidTime; return this.lastRaidTime;
} }
} }