mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Remove
This commit is contained in:
1 parent
afe138a185
commit
53842eab4e
1 file changed
-36
@@ -101,40 +101,4 @@ public class PacketAnalyzer {
|
||||
} catch (Throwable exception) { exception.printStackTrace(); }
|
||||
}
|
||||
}
|
||||
|
||||
private static class ViaPacketEncoder extends ChannelDuplexHandler {
|
||||
|
||||
private final Player player;
|
||||
private ViaPacketEncoder(Player player) {
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void channelRead(ChannelHandlerContext channel, Object packetObj) {
|
||||
try {
|
||||
if (!player.hasPermission("proantitab.bypass") && packetObj.getClass() != null) {
|
||||
String packetName = packetObj.getClass().getSimpleName();
|
||||
if (packetName.equals("PacketPlayInTabComplete")) {
|
||||
if(!PACKET_HANDLER.handleIncomingPacket(player, packetObj)) return;
|
||||
}
|
||||
}
|
||||
|
||||
super.channelRead(channel, packetObj);
|
||||
} catch (Throwable exception) { exception.printStackTrace(); }
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(ChannelHandlerContext channel, Object packetObj, ChannelPromise promise) {
|
||||
try {
|
||||
if (!player.hasPermission("proantitab.bypass") && packetObj.getClass() != null) {
|
||||
String packetName = packetObj.getClass().getSimpleName();
|
||||
if (packetName.equals("PacketPlayOutTabComplete")) {
|
||||
if(!PACKET_HANDLER.handleOutgoingPacket(player, packetObj)) return;
|
||||
}
|
||||
}
|
||||
|
||||
super.write(channel, packetObj, promise);
|
||||
} catch (Throwable exception) { exception.printStackTrace(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user