Removed unregistered from playerbase development graph

This commit is contained in:
Rsl1122 2017-12-02 14:54:33 +02:00
parent c4e8b7d948
commit d788faa62c

View File

@ -210,7 +210,11 @@ public class AnalysisUtils {
TreeMap<Long, Map<String, Set<UUID>>> activityData = new TreeMap<>();
if (!players.isEmpty()) {
for (PlayerProfile player : players) {
long registered = player.getRegistered();
for (long date = time; date >= time - TimeAmount.MONTH.ms() * 2L; date -= TimeAmount.WEEK.ms()) {
if (date < registered) {
continue;
}
double activityIndex = player.getActivityIndex(date);
String index = FormatUtils.readableActivityIndex(activityIndex)[1];