Add getLastDeath method
Also makes lastDeath a private field, since it is not accessed anywhere else in the plugin,.
This commit is contained in:
parent
63d6d69224
commit
0e76bc05fb
@ -40,7 +40,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
||||
protected Set<String> invites = new HashSet<String>();
|
||||
protected HashMap<String, List<String>> announcements = new HashMap<String, List<String>>();
|
||||
protected ConcurrentHashMap<String, LazyLocation> warps = new ConcurrentHashMap<String, LazyLocation>();
|
||||
protected long lastDeath;
|
||||
private long lastDeath;
|
||||
|
||||
public HashMap<String, List<String>> getAnnouncements() {
|
||||
return this.announcements;
|
||||
@ -261,6 +261,10 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
||||
this.lastDeath = time;
|
||||
}
|
||||
|
||||
public long getLastDeath() {
|
||||
return this.lastDeath;
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// Construct
|
||||
// -------------------------------------------- //
|
||||
|
Loading…
Reference in New Issue
Block a user