From f0627017b5a8d3fc973af404d5ddea89348bc9ea Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Wed, 4 Jan 2012 00:30:07 +0100 Subject: [PATCH] Found a bug I did NOT FIX. --- src/com/massivecraft/factions/Conf.java | 2 +- src/com/massivecraft/factions/FPlayers.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/Conf.java b/src/com/massivecraft/factions/Conf.java index c88db147..e3e73903 100644 --- a/src/com/massivecraft/factions/Conf.java +++ b/src/com/massivecraft/factions/Conf.java @@ -32,7 +32,7 @@ public class Conf // Power public static double powerPlayerMax = 10.0; public static double powerPlayerMin = -10.0; - public static double powerPlayerStarting = 0.0; // New players start out with this power level + public static double powerPlayerStarting = 10.0; // New players start out with this power level public static double powerPerMinute = 0.2; // Default health rate... it takes 5 min to heal one power public static double powerPerDeath = 4.0; // A death makes you lose 4 power public static boolean scaleNegativePower = false; // Power regeneration rate increase as power decreases diff --git a/src/com/massivecraft/factions/FPlayers.java b/src/com/massivecraft/factions/FPlayers.java index d2148861..af240f83 100644 --- a/src/com/massivecraft/factions/FPlayers.java +++ b/src/com/massivecraft/factions/FPlayers.java @@ -62,8 +62,10 @@ public class FPlayers extends PlayerEntityCollection { if (now - fplayer.getLastLoginTime() > toleranceMillis) { - if (Conf.logFactionLeave || Conf.logFactionKick) - P.p.log("Player "+fplayer.getName()+" was auto-removed due to inactivity."); + // TODO: This stops the memory leak crashes but does not solve the issue: MEMBERS ARE NOT KICKED!!! + // TODO: DO SOMETHING ABOUT THIS + /*if (Conf.logFactionLeave || Conf.logFactionKick) + P.p.log("Player "+fplayer.getName()+" was auto-removed due to inactivity.");*/ // if player is faction leader, sort out the faction since he's going away if (fplayer.getRole() == Rel.LEADER)