mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
UnicodeChat fix for other European languages (possible more?) as described in #59.
Also added more default leniancy for blink check.
This commit is contained in:
1 parent
3af7bde9db
commit
7c9a05ff92
7 files changed
+814
-758
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.rammelkast.anticheatreloaded</groupId>
|
||||
<artifactId>AntiCheatReloaded</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<version>1.8.1-PRE</version>
|
||||
<name>AntiCheatReloaded</name>
|
||||
<url>https://www.spigotmc.org/resources/anticheatreloaded.23799/</url>
|
||||
<properties>
|
||||
|
||||
@@ -255,7 +255,7 @@ public class AntiCheatReloaded extends JavaPlugin {
|
||||
}
|
||||
|
||||
public static void sendToMainThread(Runnable runnable) {
|
||||
Bukkit.getServer().getScheduler().runTask(AntiCheatReloaded.getPlugin(), runnable);
|
||||
Bukkit.getScheduler().runTask(AntiCheatReloaded.getPlugin(), runnable);
|
||||
}
|
||||
|
||||
public void sendToStaff(String message) {
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -345,9 +345,6 @@ public class PlayerListener extends EventListener {
|
||||
final User user = getUserManager().getUser(player.getUniqueId());
|
||||
user.setTo(to.getX(), to.getY(), to.getZ());
|
||||
|
||||
//KillAuraCheck.doMove(event);
|
||||
//TODO
|
||||
|
||||
if (getCheckManager().willCheckQuick(player, CheckType.FLIGHT) && !VersionUtil.isFlying(player)) {
|
||||
CheckResult result = FlightCheck.runCheck(player, distance);
|
||||
if (result.failed()) {
|
||||
@@ -360,7 +357,6 @@ public class PlayerListener extends EventListener {
|
||||
if (getCheckManager().willCheckQuick(player, CheckType.FLIGHT) && !VersionUtil.isFlying(player)) {
|
||||
CheckResult result = GlideCheck.runCheck(player, distance);
|
||||
if (result.failed()) {
|
||||
// NO TELEPORT NEEDED HERE, HANDLED BY CHECK ITSELF
|
||||
log(result.getMessage(), player, CheckType.FLIGHT);
|
||||
}
|
||||
}
|
||||
@@ -457,6 +453,7 @@ public class PlayerListener extends EventListener {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AntiCheatReloaded.getManager().addEvent(event.getEventName(), event.getHandlers().getRegisteredListeners());
|
||||
}
|
||||
|
||||
|
||||
@@ -503,7 +503,7 @@ public final class Utilities {
|
||||
}
|
||||
return seconds;
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
// Start instant break materials
|
||||
INSTANT_BREAK.add(Material.COMPARATOR);
|
||||
|
||||
@@ -19,10 +19,13 @@
|
||||
|
||||
package com.rammelkast.anticheatreloaded.util;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@@ -82,5 +85,5 @@ public class VersionUtil {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -246,10 +246,10 @@ Y_TIME: 800
|
||||
GLIDE_LIMIT: 10
|
||||
# Maximum amount of movement packets allowed per second
|
||||
# Increase this in case of false positives
|
||||
BLINK_PACKET: 25
|
||||
BLINK_PACKET: 30
|
||||
# If the blink check gives false positives replace this with the average user ping on your server
|
||||
# Not a good idea to use a value lower than 100 or higher than 200
|
||||
BLINK_AVERAGE_PING: 120
|
||||
# Not a good idea to use a value lower than 150 or higher than 300
|
||||
BLINK_AVERAGE_PING: 200
|
||||
# Maximum amount zero-velocity moments before a player is suspected
|
||||
# Increase this in case of false positives
|
||||
VELOCITY_MAX_FLAGS: 5
|
||||
|
||||
Reference in new issue
Block a user