[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.UUID;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import main.java.com.djrapitops.plan.Plan; import main.java.com.djrapitops.plan.Plan;
import main.java.com.djrapitops.plan.api.Gender;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;

View File

@ -69,11 +69,14 @@ public class InspectCacheHandler {
@Override @Override
public void run() { public void run() {
if (new Date().toInstant().getEpochSecond() - clearTimes.get(uuid) < 30) { 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); clearFomCache(uuid);
} }
} else {
this.cancel();
} }
this.cancel(); this.cancel();
} }

View File

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

View File

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

View File

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