mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
primitive last raid time
This commit is contained in:
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) {
|
||||
|
||||
this.bukkitId = new int[1];
|
||||
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
||||
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
||||
this.war = war;
|
||||
this.raidTicks = raidTicks;
|
||||
this.raidedTown = raidedTown;
|
||||
@@ -144,10 +144,11 @@ public class Raid {
|
||||
public Raid(final War war, final Town raidedTown, final Town gatherTown,
|
||||
final boolean side1AreRaiders, Player 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;
|
||||
this.gatherTown = gatherTown;
|
||||
this.owner = owner;
|
||||
|
||||
//AttackSide-Town
|
||||
|
||||
@@ -22,7 +22,7 @@ public class War {
|
||||
// References
|
||||
private ArrayList<Siege> sieges = new ArrayList<Siege>();
|
||||
private ArrayList<Raid> raids = new ArrayList<Raid>();
|
||||
private Long lastRaidTime;
|
||||
private long lastRaidTime = 0;
|
||||
|
||||
/**
|
||||
* War Constructor
|
||||
@@ -221,7 +221,7 @@ public class War {
|
||||
this.lastRaidTime = lastRaidTime;
|
||||
}
|
||||
|
||||
public Long getLastRaidTime() {
|
||||
public long getLastRaidTime() {
|
||||
return this.lastRaidTime;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user