mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
Wow! That's a logic error! Can't believe nobody caught that yet.
This commit is contained in:
1 parent
23303295bf
commit
d979538886
3 files changed
+14
-5
No files matched your search
@@ -21,7 +21,10 @@ package net.h31ix.anticheat.manage;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
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.Anticheat;
|
||||||
import net.h31ix.anticheat.util.Configuration;
|
import net.h31ix.anticheat.util.Configuration;
|
||||||
import net.h31ix.anticheat.util.FileFormatter;
|
import net.h31ix.anticheat.util.FileFormatter;
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ public class Backend
|
|||||||
public void logAscension(Player player, double y1, double y2)
|
public void logAscension(Player player, double y1, double y2)
|
||||||
{
|
{
|
||||||
String name = player.getName();
|
String name = player.getName();
|
||||||
if (y1 < y2)
|
if (y1 < y2 && !isAscending.contains(name))
|
||||||
{
|
{
|
||||||
isAscending.add(name);
|
isAscending.add(name);
|
||||||
}
|
}
|
||||||
@@ -1078,7 +1078,10 @@ public class Backend
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private void logEvent(@SuppressWarnings("rawtypes") final List list, final Player player, long time)
|
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()
|
micromanage.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(micromanage.getPlugin(), new Runnable()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
@@ -1092,7 +1095,10 @@ public class Backend
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private void logEvent(@SuppressWarnings("rawtypes") final Map map, final Player player, final Object obj, long time)
|
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()
|
micromanage.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(micromanage.getPlugin(), new Runnable()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class PastebinReport
|
|||||||
private void appendSystemInfo()
|
private void appendSystemInfo()
|
||||||
{
|
{
|
||||||
Runtime runtime = Runtime.getRuntime();
|
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("OS: " + System.getProperty("os.name") + " " + System.getProperty("os.version") + '\n');
|
||||||
report.append("Free Memory: " + runtime.freeMemory() / 1024 / 1024 + "MB" + '\n');
|
report.append("Free Memory: " + runtime.freeMemory() / 1024 / 1024 + "MB" + '\n');
|
||||||
report.append("Max Memory: " + runtime.maxMemory() / 1024 / 1024 + "MB" + '\n');
|
report.append("Max Memory: " + runtime.maxMemory() / 1024 / 1024 + "MB" + '\n');
|
||||||
|
|||||||
Reference in new issue
Block a user