Add getLastDeath method

Also makes lastDeath a private field, since it is not accessed anywhere
else in the plugin,.
This commit is contained in:
Nick Porillo 2015-02-11 23:01:13 -05:00
parent 63d6d69224
commit 0e76bc05fb
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
protected Set<String> invites = new HashSet<String>(); protected Set<String> invites = new HashSet<String>();
protected HashMap<String, List<String>> announcements = new HashMap<String, List<String>>(); protected HashMap<String, List<String>> announcements = new HashMap<String, List<String>>();
protected ConcurrentHashMap<String, LazyLocation> warps = new ConcurrentHashMap<String, LazyLocation>(); protected ConcurrentHashMap<String, LazyLocation> warps = new ConcurrentHashMap<String, LazyLocation>();
protected long lastDeath; private long lastDeath;
public HashMap<String, List<String>> getAnnouncements() { public HashMap<String, List<String>> getAnnouncements() {
return this.announcements; return this.announcements;
@ -261,6 +261,10 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
this.lastDeath = time; this.lastDeath = time;
} }
public long getLastDeath() {
return this.lastDeath;
}
// -------------------------------------------- // // -------------------------------------------- //
// Construct // Construct
// -------------------------------------------- // // -------------------------------------------- //