mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Ready for pre-release; Removed broken code, finished config migrations and fixed false positive
This commit is contained in:
1 parent
07f3c3abce
commit
168c25e5d2
16 files changed
+156
-313
No files matched your search
@@ -19,8 +19,14 @@
|
||||
|
||||
package com.rammelkast.anticheatreloaded.util;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@@ -30,11 +36,6 @@ import com.rammelkast.anticheatreloaded.check.CheckType;
|
||||
import com.rammelkast.anticheatreloaded.config.Configuration;
|
||||
import com.rammelkast.anticheatreloaded.util.rule.Rule;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class User {
|
||||
private final UUID uuid;
|
||||
private final String name;
|
||||
@@ -48,14 +49,14 @@ public class User {
|
||||
private Long[] messageTimes = new Long[2];
|
||||
private String[] commands = new String[2];
|
||||
private Long[] commandTimes = new Long[2];
|
||||
|
||||
|
||||
private boolean isWaitingOnLevelSync;
|
||||
private Timestamp levelSyncTimestamp;
|
||||
|
||||
private long lastServerPing, lastClientPong;
|
||||
private int ping = -1;
|
||||
private int lastPing = -1;
|
||||
|
||||
|
||||
private MovementManager movementManager;
|
||||
|
||||
/**
|
||||
@@ -238,7 +239,7 @@ public class User {
|
||||
public boolean setGoodLocation(Location location) {
|
||||
if (Utilities.cantStandAtExp(location)
|
||||
|| (location.getBlock().isLiquid() && !Utilities.isFullyInWater(location))
|
||||
|| !location.getBlock().getType().isSolid()) {
|
||||
|| (!location.getBlock().getType().isSolid() && location.getBlock().getType() != Material.AIR)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -461,7 +462,7 @@ public class User {
|
||||
public boolean isLagging() {
|
||||
return Math.abs(this.ping - this.lastPing) > config.getMagic().LAG_DETERMINATION();
|
||||
}
|
||||
|
||||
|
||||
public MovementManager getMovementManager() {
|
||||
return this.movementManager;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user