Skip to content

[FEATURE]Grim MultiActionsC Disabler #7940

@1444803383

Description

@1444803383

Describe your feature request.

package today.candy.features.modules.impl.exploit;

import net.minecraft.network.play.client.C0BPacketEntityAction;
import net.minecraft.network.play.client.C0DPacketCloseWindow;
import net.minecraft.network.play.client.C0EPacketClickWindow;
import today.candy.event.annotations.EventTarget;
import today.candy.event.impl.network.PacketSendEvent;
import today.candy.features.modules.Category;
import today.candy.features.modules.Module;
import today.candy.utils.network.PacketUtils;

public class MoveDisabler extends Module {

public MoveDisabler() {
    super("MoveDisabler",Category.EXPLOIT,"Move Disabler");
}

@EventTarget
public void onPacketSend(PacketSendEvent e) {
    if ((e.getPacket() instanceof C0EPacketClickWindow || e.getPacket() instanceof C0DPacketCloseWindow) && mc.thePlayer.isSprinting()) {
        e.setCancelled(true);
        PacketUtils.sendPacket(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.STOP_SPRINTING));
        PacketUtils.sendPacketNoEvent(e.getPacket());
        PacketUtils.sendPacket(new C0BPacketEntityAction(mc.thePlayer, C0BPacketEntityAction.Action.START_SPRINTING));
    }
}

}

Additional context

【Grim ACA Sprint InvManager】 https://www.bilibili.com/video/BV1FyZ6BZEgG/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions