mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
parent
236a2bd702
commit
446af674b8
@ -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;
|
||||
|
@ -69,12 +69,15 @@ 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();
|
||||
}
|
||||
}).runTaskLater(plugin, 60 * 20 * minutes);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user