mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-07-01 10:18:26 +00:00
Implements BadPackets (PITCH) check
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
package dev.brighten.ac.check.impl.packet.badpackets;
|
||||
|
||||
public class Pitch {
|
||||
import dev.brighten.ac.api.check.CheckType;
|
||||
import dev.brighten.ac.check.Check;
|
||||
import dev.brighten.ac.check.CheckData;
|
||||
import dev.brighten.ac.check.WAction;
|
||||
import dev.brighten.ac.data.APlayer;
|
||||
import dev.brighten.ac.packet.wrapper.in.WPacketPlayInFlying;
|
||||
import dev.brighten.ac.utils.annotation.Async;
|
||||
|
||||
@CheckData(name = "BadPackets (Pitch)", checkId = "badpacketspitch", type = CheckType.BADPACKETS, punishVl = 1)
|
||||
public class Pitch extends Check {
|
||||
public Pitch(APlayer player) {
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Async
|
||||
WAction<WPacketPlayInFlying> flying = packet -> {
|
||||
if(packet.isLooked() && Math.abs(packet.getPitch()) > 90) {
|
||||
flag("pitch=%.2f", Math.abs(packet.getPitch()));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user