Moved the last stuff away from ConfServer.

This commit is contained in:
Olof Larsson
2013-04-24 08:39:26 +02:00
parent d9a23241ec
commit 825d937c84
22 changed files with 195 additions and 200 deletions

View File

@ -69,12 +69,12 @@ public class UPlayerColl extends SenderColl<UPlayer>
}
}
public void autoLeaveOnInactivityRoutine()
public void removePlayerDataAfterInactiveDaysRoutine()
{
if (ConfServer.autoLeaveAfterDaysOfInactivity <= 0.0) return;
if (MConf.get().removePlayerDataAfterInactiveDays <= 0.0) return;
long now = System.currentTimeMillis();
double toleranceMillis = ConfServer.autoLeaveAfterDaysOfInactivity * TimeUnit.MILLIS_PER_DAY;
double toleranceMillis = MConf.get().removePlayerDataAfterInactiveDays * TimeUnit.MILLIS_PER_DAY;
for (UPlayer uplayer : this.getAll())
{
@ -99,7 +99,7 @@ public class UPlayerColl extends SenderColl<UPlayer>
}
}
uplayer.leave(false);
uplayer.resetFactionData();
uplayer.detach();
}
}