Fixed bug, updated nameutil

This commit is contained in:
Rammelkast committed 2016-11-17 18:46:43 +01:00
1 parent fade626bcb
commit 33811b9fca
3 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.gravitydevelopment.anticheat</groupId> <groupId>net.gravitydevelopment.anticheat</groupId>
<artifactId>AntiCheat</artifactId> <artifactId>AntiCheat</artifactId>
<version>1.5.0-ALPHA</version> <version>1.5.1-ALPHA</version>
<name>AntiCheatReloaded</name> <name>AntiCheatReloaded</name>
<url>https://rammelkast.com</url> <url>https://rammelkast.com</url>
<properties> <properties>
@@ -12,6 +12,7 @@ import net.gravitydevelopment.anticheat.AntiCheat;
import net.gravitydevelopment.anticheat.check.CheckResult; import net.gravitydevelopment.anticheat.check.CheckResult;
import net.gravitydevelopment.anticheat.util.Distance; import net.gravitydevelopment.anticheat.util.Distance;
import net.gravitydevelopment.anticheat.util.Utilities; 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 Map<UUID, Long> movingExempt = new HashMap<UUID, Long>();
public static CheckResult runCheck(Player player, Distance distance) { 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. // This was a teleport, so we don't care about it.
return PASS; return PASS;
} }
@@ -10,7 +10,10 @@ public class NameUtil {
"Derp", "Derp",
"Random", "Random",
"That", "That",
"NoHaxJust" "NoHaxJust",
"Derp",
"Fun",
"Luigi"
}; };
private static String[] secondParts = new String[] { private static String[] secondParts = new String[] {
@@ -19,7 +22,11 @@ public class NameUtil {
"Guy", "Guy",
"Mario", "Mario",
"Plain", "Plain",
"Simple" "Simple",
"NotHacking",
"Random",
"11",
"06"
}; };
private static Random theRandom = new Random(); private static Random theRandom = new Random();