Files
OpenAAC3/src/main/java/me/konsolas/aac/checks/movement/Derp.java
T
2026-11-21 21:15:24 -05:00

20 lines
743 B
Java

package me.konsolas.aac.checks.movement;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketListener;
import me.konsolas.aac.AAC;
import me.konsolas.aac.checks.Detector;
import org.bukkit.plugin.Plugin;
public final class Derp
extends Detector {
public Derp(AAC aAC) {
super(aAC);
HeadRollPacketListener headRollPacketListener = new HeadRollPacketListener(this, (Plugin)this.plugin, new PacketType[]{PacketType.Play.Client.LOOK, PacketType.Play.Client.POSITION_LOOK});
this.packetListeners.add(headRollPacketListener);
ProtocolLibrary.getProtocolManager().addPacketListener((PacketListener)headRollPacketListener);
}
}