Sort of fixed badly broken and untested GhostHand check, added update messaging.

Check will still need to be improved, but seems to work without false positives for now.
This commit is contained in:
Rammelkast committed 2020-03-30 22:55:18 +02:00
1 parent e89a6cfd88
commit 2ba98f9f9c
8 files changed
+50 -41

No files matched your search

@@ -45,14 +45,14 @@ public class KillAuraCheck {
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
public static void listenPackets() {
AntiCheatReloaded.getProtocolManager().addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(),
/*AntiCheatReloaded.getProtocolManager().addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(),
ListenerPriority.LOWEST, new PacketType[] { PacketType.Play.Client.POSITION_LOOK }) {
@Override
public void onPacketReceiving(PacketEvent e) {
Player player = e.getPlayer();
PacketContainer packet = e.getPacket();
}
});
});*/
}
public static CheckResult checkAngle(Player player, EntityDamageEvent event) {
@@ -83,7 +83,7 @@ public class KillAuraCheck {
return PASS;
}
private static double calculateYawDifference(Location from, Location to) {
public static double calculateYawDifference(Location from, Location to) {
Location clonedFrom = from.clone();
Vector startVector = clonedFrom.toVector();
Vector targetVector = to.toVector();