He says his disabler makes it lag (to be exact the packets.poll(); )
The Code of the Disabler:
package com.mintyplays.tutorial.module.exploit;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedDeque;
import org.lwjgl.input.Keyboard;
import com.mintyplays.tutorial.Tutorial;
import com.mintyplays.tutorial.event.EventTarget;
import com.mintyplays.tutorial.event.events.EventReceivePacket;
import com.mintyplays.tutorial.event.events.EventSendPacket;
import com.mintyplays.tutorial.event.events.EventUpdate;
import com.mintyplays.tutorial.event.events.PacketEvent;
import com.mintyplays.tutorial.module.Category;
import com.mintyplays.tutorial.module.Module;
import com.mintyplays.tutorial.utils.PacketUtil;
import com.mintyplays.tutorial.utils.Stopwatch;
import com.mintyplays.tutorial.utils.Timer;
import com.mojang.realmsclient.dto.RealmsServer.McoServerComparator;
import de.Hero.settings.Setting;
import net.minecraft.init.Items;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0BPacketEntityAction;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.server.S00PacketKeepAlive;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S0BPacketAnimation;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChatStyle;
import net.minecraft.util.IChatComponent;
public class Disabler extends Module{
static LinkedList<Packet> packets = new LinkedList<Packet>();
public static boolean expectedTeleport;
static Stopwatch timer = new Stopwatch();
public static Timer timer2 = new Timer();
public Disabler() {
super("Disabler", Keyboard.KEY_NONE, Category.MISC);
packets = new LinkedList();
timer = new Stopwatch();
}
@Override
public void setup() {
ArrayList<String> options = new ArrayList<>();
options.add("Verus");
options.add("Ghostly");
options.add("Hypixel");
Tutorial.instance.settingsManager.rSetting(new Setting("Auto Disable", this, true));
Tutorial.instance.settingsManager.rSetting(new Setting("Disabler Mode", this, "Verus", options));
Tutorial.instance.settingsManager.rSetting(new Setting("VerusFlagDelay", this, 40, 35, 60, false));
Tutorial.instance.settingsManager.rSetting(new Setting("VerusBufferSize", this, 300, 0, 1000, false));
Tutorial.instance.settingsManager.rSetting(new Setting("VerusSilentFlagApply", this, true));
}
private final Queue<Packet<?>> packetQueue = new ConcurrentLinkedDeque<>();
@Override
public void onEnable() {
super.onEnable();
expectedTeleport = false;
packets.clear();
timer.resetTime();
}
@Override
public void onDisable() {
super.onDisable();
expectedTeleport = false;
}
@EventTarget
public void onSend(EventSendPacket event) {
if (shouldNotRun()) {
timer.resetTime();
packets.clear();
return;
}
if (event.getPacket() instanceof C0FPacketConfirmTransaction) {
packets.add(event.getPacket());
event.setCancelled(true);
if (packets.size() > 300) {
PacketUtil.sendPacketNoEvent((Packet)((Packet)packets.poll()));
}
}
if (event.getPacket() instanceof C0BPacketEntityAction) {
event.setCancelled(true);
}
if (event.getPacket() instanceof C03PacketPlayer) {
C03PacketPlayer c03 = (C03PacketPlayer)event.getPacket();
if (mc.thePlayer.ticksExisted % 5 == 0) {
PacketUtil.sendPacketNoEvent((Packet)new C0CPacketInput());
}
if (mc.thePlayer.ticksExisted % 40 == 0) {
expectedTeleport = true;
c03.y = -0.015625;
c03.onGround = false;
}
}
if (event.getPacket() instanceof S08PacketPlayerPosLook && expectedTeleport) {
S08PacketPlayerPosLook s08 = (S08PacketPlayerPosLook)event.getPacket();
expectedTeleport = false;
event.setCancelled(true);
PacketUtil.sendPacketNoEvent((Packet)new C03PacketPlayer.C06PacketPlayerPosLook(s08.getX(), s08.getY(), s08.getZ(), s08.getYaw(), s08.getPitch(), true));
}
}
@EventTarget
public void onUpdate(EventUpdate event) {
this.setDisplayName("Disabler §8" + "BlocksMC");
if (timer.timeElapsed(490L)) {
timer.resetTime();
if (!packets.isEmpty()) {
PacketUtil.sendPacketNoEvent((Packet)((Packet)packets.poll()));
}
}
}
boolean shouldNotRun() {
if (mc.thePlayer == null) {
return true;
}
if (mc.thePlayer.inventory == null) {
return true;
}
if (mc.thePlayer.inventory.hasItem(Items.compass)) {
return true;
}
return mc.thePlayer == null || mc.thePlayer.ticksExisted <= 5;
}
boolean isLegitC0F(short size) {
return size > 0 && size < 100;
}
}
the packets.poll starts to lag it all out like crazy
The Code of the Disabler:
package com.mintyplays.tutorial.module.exploit;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedDeque;
import org.lwjgl.input.Keyboard;
import com.mintyplays.tutorial.Tutorial;
import com.mintyplays.tutorial.event.EventTarget;
import com.mintyplays.tutorial.event.events.EventReceivePacket;
import com.mintyplays.tutorial.event.events.EventSendPacket;
import com.mintyplays.tutorial.event.events.EventUpdate;
import com.mintyplays.tutorial.event.events.PacketEvent;
import com.mintyplays.tutorial.module.Category;
import com.mintyplays.tutorial.module.Module;
import com.mintyplays.tutorial.utils.PacketUtil;
import com.mintyplays.tutorial.utils.Stopwatch;
import com.mintyplays.tutorial.utils.Timer;
import com.mojang.realmsclient.dto.RealmsServer.McoServerComparator;
import de.Hero.settings.Setting;
import net.minecraft.init.Items;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0BPacketEntityAction;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.server.S00PacketKeepAlive;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S0BPacketAnimation;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChatStyle;
import net.minecraft.util.IChatComponent;
public class Disabler extends Module{
static LinkedList<Packet> packets = new LinkedList<Packet>();
public static boolean expectedTeleport;
static Stopwatch timer = new Stopwatch();
public static Timer timer2 = new Timer();
public Disabler() {
super("Disabler", Keyboard.KEY_NONE, Category.MISC);
packets = new LinkedList();
timer = new Stopwatch();
}
@Override
public void setup() {
ArrayList<String> options = new ArrayList<>();
options.add("Verus");
options.add("Ghostly");
options.add("Hypixel");
Tutorial.instance.settingsManager.rSetting(new Setting("Auto Disable", this, true));
Tutorial.instance.settingsManager.rSetting(new Setting("Disabler Mode", this, "Verus", options));
Tutorial.instance.settingsManager.rSetting(new Setting("VerusFlagDelay", this, 40, 35, 60, false));
Tutorial.instance.settingsManager.rSetting(new Setting("VerusBufferSize", this, 300, 0, 1000, false));
Tutorial.instance.settingsManager.rSetting(new Setting("VerusSilentFlagApply", this, true));
}
private final Queue<Packet<?>> packetQueue = new ConcurrentLinkedDeque<>();
@Override
public void onEnable() {
super.onEnable();
expectedTeleport = false;
packets.clear();
timer.resetTime();
}
@Override
public void onDisable() {
super.onDisable();
expectedTeleport = false;
}
@EventTarget
public void onSend(EventSendPacket event) {
if (shouldNotRun()) {
timer.resetTime();
packets.clear();
return;
}
if (event.getPacket() instanceof C0FPacketConfirmTransaction) {
packets.add(event.getPacket());
event.setCancelled(true);
if (packets.size() > 300) {
PacketUtil.sendPacketNoEvent((Packet)((Packet)packets.poll()));
}
}
if (event.getPacket() instanceof C0BPacketEntityAction) {
event.setCancelled(true);
}
if (event.getPacket() instanceof C03PacketPlayer) {
C03PacketPlayer c03 = (C03PacketPlayer)event.getPacket();
if (mc.thePlayer.ticksExisted % 5 == 0) {
PacketUtil.sendPacketNoEvent((Packet)new C0CPacketInput());
}
if (mc.thePlayer.ticksExisted % 40 == 0) {
expectedTeleport = true;
c03.y = -0.015625;
c03.onGround = false;
}
}
if (event.getPacket() instanceof S08PacketPlayerPosLook && expectedTeleport) {
S08PacketPlayerPosLook s08 = (S08PacketPlayerPosLook)event.getPacket();
expectedTeleport = false;
event.setCancelled(true);
PacketUtil.sendPacketNoEvent((Packet)new C03PacketPlayer.C06PacketPlayerPosLook(s08.getX(), s08.getY(), s08.getZ(), s08.getYaw(), s08.getPitch(), true));
}
}
@EventTarget
public void onUpdate(EventUpdate event) {
this.setDisplayName("Disabler §8" + "BlocksMC");
if (timer.timeElapsed(490L)) {
timer.resetTime();
if (!packets.isEmpty()) {
PacketUtil.sendPacketNoEvent((Packet)((Packet)packets.poll()));
}
}
}
boolean shouldNotRun() {
if (mc.thePlayer == null) {
return true;
}
if (mc.thePlayer.inventory == null) {
return true;
}
if (mc.thePlayer.inventory.hasItem(Items.compass)) {
return true;
}
return mc.thePlayer == null || mc.thePlayer.ticksExisted <= 5;
}
boolean isLegitC0F(short size) {
return size > 0 && size < 100;
}
}
the packets.poll starts to lag it all out like crazy