[2.8.2[ Added config suggestions from #43 Fix #42

This commit is contained in:
Rsl1122 2017-03-10 21:48:25 +02:00
parent 236a2bd702
commit 446af674b8
5 changed files with 15 additions and 13 deletions

View File

@ -10,7 +10,6 @@ import java.util.Objects;
import java.util.UUID;
import java.util.stream.Collectors;
import main.java.com.djrapitops.plan.Plan;
import main.java.com.djrapitops.plan.api.Gender;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;

View File

@ -69,11 +69,14 @@ public class InspectCacheHandler {
@Override
public void run() {
if (new Date().toInstant().getEpochSecond() - clearTimes.get(uuid) < 30) {
if (!cache.get(uuid).isAccessed()) {
UserData uData = cache.get(uuid);
if (uData == null) {
this.cancel();
return;
}
if (!uData.isAccessed()) {
clearFomCache(uuid);
}
} else {
this.cancel();
}
this.cancel();
}

View File

@ -71,7 +71,7 @@ public class AnalysisUtils {
return html;
}
static int getNewPlayers(List<Long> registered, long scale, long now) {
public static int getNewPlayers(List<Long> registered, long scale, long now) {
int newPlayers = 0;
if (!registered.isEmpty()) {
newPlayers = registered.stream()
@ -84,7 +84,7 @@ public class AnalysisUtils {
return newPlayers;
}
static List<Long> transformSessionDataToLengths(Collection<SessionData> data) {
public static List<Long> transformSessionDataToLengths(Collection<SessionData> data) {
List<Long> list = new ArrayList<>();
data.stream().forEach((sData) -> {
list.add(sData.getSessionEnd()-sData.getSessionStart());
@ -92,7 +92,7 @@ public class AnalysisUtils {
return list;
}
static long average(Collection<Long> list) {
public static long average(Collection<Long> list) {
if (list.isEmpty()) {
return 0;
}

View File

@ -50,10 +50,10 @@ Customization:
Inactive: 'A9A9A9'
JoinedOnce: '808080'
DemographicsTriggers:
Trigger: "i'm, am, im"
Female: 'female, girl, gurl, woman, gal, mrs, she, miss'
Male: 'male, boy, man, boe, sir, mr, guy, he'
IgnoreWhen: 'sure, think, with, are, you'
Trigger: "i'm, am, im, bin"
Female: 'female, girl, gurl, woman, gal, mrs, she, miss, feminin, weiblich, mädchen, frau'
Male: 'male, boy, man, boe, sir, mr, guy, he, männlich, maskulin, junge, mann'
IgnoreWhen: 'sure, think, with, are, you, din'
database:
type: sqlite

View File

@ -1,7 +1,7 @@
name: Plan
author: Rsl1122
main: main.java.com.djrapitops.plan.Plan
version: 2.8.1
version: 2.8.2
softdepend:
- OnTime