From 0e76bc05fbf8e5d11d27224a9593a39af4102b33 Mon Sep 17 00:00:00 2001 From: Nick Porillo Date: Wed, 11 Feb 2015 23:01:13 -0500 Subject: [PATCH] Add getLastDeath method Also makes lastDeath a private field, since it is not accessed anywhere else in the plugin,. --- .../massivecraft/factions/zcore/persist/MemoryFaction.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java index 9ddcb634..792e4c3e 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java @@ -40,7 +40,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator { protected Set invites = new HashSet(); protected HashMap> announcements = new HashMap>(); protected ConcurrentHashMap warps = new ConcurrentHashMap(); - protected long lastDeath; + private long lastDeath; public HashMap> 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 // -------------------------------------------- //