diff --git a/src/main/java/net/h31ix/anticheat/manage/AnticheatManager.java b/src/main/java/net/h31ix/anticheat/manage/AnticheatManager.java index 36ecaca..1e6e912 100644 --- a/src/main/java/net/h31ix/anticheat/manage/AnticheatManager.java +++ b/src/main/java/net/h31ix/anticheat/manage/AnticheatManager.java @@ -21,7 +21,10 @@ package net.h31ix.anticheat.manage; import java.io.File; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import java.util.logging.*; +import java.util.logging.FileHandler; +import java.util.logging.Handler; +import java.util.logging.Level; +import java.util.logging.Logger; import net.h31ix.anticheat.Anticheat; import net.h31ix.anticheat.util.Configuration; import net.h31ix.anticheat.util.FileFormatter; diff --git a/src/main/java/net/h31ix/anticheat/manage/Backend.java b/src/main/java/net/h31ix/anticheat/manage/Backend.java index 0b6d241..78883d9 100644 --- a/src/main/java/net/h31ix/anticheat/manage/Backend.java +++ b/src/main/java/net/h31ix/anticheat/manage/Backend.java @@ -620,7 +620,7 @@ public class Backend public void logAscension(Player player, double y1, double y2) { String name = player.getName(); - if (y1 < y2) + if (y1 < y2 && !isAscending.contains(name)) { isAscending.add(name); } @@ -1078,7 +1078,10 @@ public class Backend @SuppressWarnings("unchecked") private void logEvent(@SuppressWarnings("rawtypes") final List list, final Player player, long time) { - list.add(player.getName()); + if(!list.contains(player.getName())) + { + list.add(player.getName()); + } micromanage.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(micromanage.getPlugin(), new Runnable() { @Override @@ -1092,7 +1095,10 @@ public class Backend @SuppressWarnings("unchecked") private void logEvent(@SuppressWarnings("rawtypes") final Map map, final Player player, final Object obj, long time) { - map.put(player.getName(), obj); + if(!map.containsKey(player.getName())) + { + map.put(player.getName(), obj); + } micromanage.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(micromanage.getPlugin(), new Runnable() { @Override diff --git a/src/main/java/net/h31ix/anticheat/util/PastebinReport.java b/src/main/java/net/h31ix/anticheat/util/PastebinReport.java index fb1f79c..d54ba6a 100644 --- a/src/main/java/net/h31ix/anticheat/util/PastebinReport.java +++ b/src/main/java/net/h31ix/anticheat/util/PastebinReport.java @@ -74,7 +74,7 @@ public class PastebinReport private void appendSystemInfo() { Runtime runtime = Runtime.getRuntime(); - report.append("Java: " + System.getProperty("java.vendor") + " " + System.getProperty("java.version") + " (" + System.getProperty("java.vendor.url") + ")" + '\n'); + report.append("Java: " + System.getProperty("java.vendor") + " " + System.getProperty("java.version") + '\n'); report.append("OS: " + System.getProperty("os.name") + " " + System.getProperty("os.version") + '\n'); report.append("Free Memory: " + runtime.freeMemory() / 1024 / 1024 + "MB" + '\n'); report.append("Max Memory: " + runtime.maxMemory() / 1024 / 1024 + "MB" + '\n');