mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed bug, updated nameutil
This commit is contained in:
1 parent
fade626bcb
commit
33811b9fca
3 files changed
+12
-4
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.gravitydevelopment.anticheat</groupId>
|
||||
<artifactId>AntiCheat</artifactId>
|
||||
<version>1.5.0-ALPHA</version>
|
||||
<version>1.5.1-ALPHA</version>
|
||||
<name>AntiCheatReloaded</name>
|
||||
<url>https://rammelkast.com</url>
|
||||
<properties>
|
||||
|
||||
@@ -12,6 +12,7 @@ import net.gravitydevelopment.anticheat.AntiCheat;
|
||||
import net.gravitydevelopment.anticheat.check.CheckResult;
|
||||
import net.gravitydevelopment.anticheat.util.Distance;
|
||||
import net.gravitydevelopment.anticheat.util.Utilities;
|
||||
import net.gravitydevelopment.anticheat.util.VersionUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -26,7 +27,7 @@ public class FlightCheck {
|
||||
public static Map<UUID, Long> movingExempt = new HashMap<UUID, Long>();
|
||||
|
||||
public static CheckResult runCheck(Player player, Distance distance) {
|
||||
if (distance.getYDifference() > AntiCheat.getManager().getBackend().getMagic().TELEPORT_MIN()) {
|
||||
if (distance.getYDifference() > AntiCheat.getManager().getBackend().getMagic().TELEPORT_MIN() || VersionUtil.isFlying(player)) {
|
||||
// This was a teleport, so we don't care about it.
|
||||
return PASS;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,10 @@ public class NameUtil {
|
||||
"Derp",
|
||||
"Random",
|
||||
"That",
|
||||
"NoHaxJust"
|
||||
"NoHaxJust",
|
||||
"Derp",
|
||||
"Fun",
|
||||
"Luigi"
|
||||
};
|
||||
|
||||
private static String[] secondParts = new String[] {
|
||||
@@ -19,7 +22,11 @@ public class NameUtil {
|
||||
"Guy",
|
||||
"Mario",
|
||||
"Plain",
|
||||
"Simple"
|
||||
"Simple",
|
||||
"NotHacking",
|
||||
"Random",
|
||||
"11",
|
||||
"06"
|
||||
};
|
||||
|
||||
private static Random theRandom = new Random();
|
||||
|
||||
Reference in new issue
Block a user