Skip to content

MoreKnockback #1780

Open
Open
@Dbbtop

Description

@Dbbtop

Describe the bypass and how to replicate it

@eventhandler
public void onSendPacket(PacketEvent.Send event) {
if ((!MovementUtility.isMoving() || inMove.getValue())
&& event.getPacket() instanceof PlayerInteractEntityC2SPacket
&& getInteractType(event.getPacket()) == Criticals.InteractType.ATTACK
&& !(getEntity(event.getPacket()) instanceof EndCrystalEntity)
&& getEntity(event.getPacket()) instanceof LivingEntity lent
&& lent.hurtTime <= hurtTime.getValue()
&& MathUtility.random(0, 100) >= (100 - chance.getValue())
&& !canCrit()) {

        if (mc.player.isSprinting()) sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.STOP_SPRINTING));
        sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.START_SPRINTING));
        sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.STOP_SPRINTING));
        sendPacket(new ClientCommandC2SPacket(mc.player, ClientCommandC2SPacket.Mode.START_SPRINTING));
        debug("wtap");
        mc.player.setSprinting(true);
        mc.player.lastSprinting = true;

Grim version

latest

Server version

1.19.4

Plugins

grim, packetevents, LP

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