Rise 5.99 Sprint module 2 files, 118 lines

Rise 5.99 Sprint: Full Source Analysis

Rise 5.99's Sprint is an auto-sprint module.

dev/rise/module/impl/movement/Sprint.java · GitHub source ↗

Published 2026-08-12 · Updated 2026-08-12

Packets This Module Uses

Analysis

Overview

Rise 5.99's Sprint is an auto-sprint module. On every StrafeEvent it forces the sprint keybind's pressed flag true and, in All Directions mode, sets the EntityPlayerSP allowMultiDirSprint flag so the player moves at sprint speed in every direction. Silent mode cancels the C0B START_SPRINTING packet whenever the forward key is not held, so omni-sprinting sideways or backward never informs the server of the sprint state, and Only In Air restricts the multi-dir flag to airborne movement with a two-tick ground grace. onDisable restores the real keyboard state and clears the flag.

Key forcing

The handler runs on StrafeEvent, the per-movement-tick event. It maintains an onGroundTicks counter for the Only In Air gate, then unconditionally writes keyBindSprint.setKeyPressed(true), which makes the vanilla sprint-start logic treat the key as held. The vanilla EntityPlayerSP update diffs the sprint state against its last-known server state and emits C0B START_SPRINTING when the state changes, so the wire effect is one START per enable cycle, not a packet per tick. The forced key also keeps the vanilla conditions (moving, not collided, food above the stop threshold) as the effective gates on whether the sprint actually engages.

Multi-directional sprint

All Directions sets allowMultiDirSprint, the client field that lets the movement code apply sprint speed while strafing or moving backward, gated on the module being enabled, the player not sneaking, MoveUtil.isMoving() and no horizontal collision, with Only In Air further requiring fewer than two grounded ticks. Silent mode then filters the C0B stream: when the forward key is not down, a START_SPRINTING packet is cancelled, so the server-side sprint state stays false for sideways and backward motion. When the forward key IS held, the C0B goes through and the server sees a sprinting player moving diagonally, which is the state that direction-aware checks can measure.

Wire fingerprint

The clean fingerprint is one C0B START and one STOP per toggle cycle. In silent multi-dir use the C0B stream is suppressed almost entirely while the C03 deltas still show sprint-speed motion in arbitrary directions, which is the sharper anomaly: the server-side sprint state says not sprinting while the position stream moves faster than walk speed. The module never sends anything else; it only mutates the keybind, the client flag and the outgoing C0B.

source Sprint.java

Sprint.java76 lines · JavaOriginal ↗
1
/*
2
 Copyright Alan Wood 2021
3
 None of this code to be reused without my written permission
4
 Intellectual Rights owned by Alan Wood
5
 */
6
package dev.rise.module.impl.movement;
7
8
import dev.rise.Rise;
9
import dev.rise.event.impl.motion.PreMotionEvent;
10
import dev.rise.event.impl.other.StrafeEvent;
11
import dev.rise.event.impl.packet.PacketSendEvent;
12
import dev.rise.module.Module;
13
import dev.rise.module.api.ModuleInfo;
14
import dev.rise.module.enums.Category;
15
import dev.rise.setting.impl.BooleanSetting;
16
import dev.rise.util.InstanceAccess;
17
import dev.rise.util.player.MoveUtil;
18
import dev.rise.util.player.PlayerUtil;
19
import net.minecraft.network.play.client.C0BPacketEntityAction;
20
import org.lwjgl.input.Keyboard;
21
22
/**
23
 * Makes you automatically sprint without pressing the sprint key.
24
 */
25
@ModuleInfo(name = "Sprint", description = "Sprints for you", category = Category.MOVEMENT)
26
public final class Sprint extends Module implements InstanceAccess {
27
28
    private final BooleanSetting multiDir = new BooleanSetting("All Directions", this, false);
29
    private final BooleanSetting onlyInAir = new BooleanSetting("Only In Air", this, false);
30
    private final BooleanSetting silent = new BooleanSetting("Silent", this, true);
31
    private int onGroundTicks;
32
33
    @Override
34
    public void onUpdateAlwaysInGui() {
35
        onlyInAir.hidden = silent.hidden = !multiDir.isEnabled();
36
    }
37
38
    @Override
39
    public void onStrafe(final StrafeEvent event) {
40
        if (mc.thePlayer.onGround) {
41
            onGroundTicks += 1;
42
        } else {
43
            onGroundTicks = 0;
44
        }
45
46
        mc.gameSettings.keyBindSprint.setKeyPressed(true);
47
48
        mc.thePlayer.allowMultiDirSprint = multiDir.isEnabled()
49
                && !mc.thePlayer.isSneaking()
50
                && MoveUtil.isMoving()
51
                && !mc.thePlayer.isCollidedHorizontally
52
                && (!onlyInAir.isEnabled() || onGroundTicks < 2);
53
    }
54
55
    @Override
56
    public void onPreMotion(PreMotionEvent event) {
57
58
    }
59
60
    @Override
61
    protected void onDisable() {
62
        mc.gameSettings.keyBindSprint.setKeyPressed(Keyboard.isKeyDown(mc.gameSettings.keyBindSprint.getKeyCode()));
63
        mc.thePlayer.allowMultiDirSprint = false;
64
    }
65
66
    @Override
67
    public void onPacketSend(final PacketSendEvent event) {
68
        if (multiDir.isEnabled() && silent.isEnabled() && !mc.gameSettings.keyBindForward.isKeyDown() && event.getPacket() instanceof C0BPacketEntityAction) {
69
            C0BPacketEntityAction.Action action = ((C0BPacketEntityAction) event.getPacket()).getAction();
70
71
            if (action.equals(C0BPacketEntityAction.Action.START_SPRINTING)) {
72
                event.setCancelled(true);
73
            }
74
        }
75
    }
76
}

What this file does

The module is entirely this file. The constructor registers All Directions (false default), Only In Air (false) and Silent (true), and onUpdateAlwaysInGui hides Only In Air and Silent unless All Directions is enabled, so the UI only exposes them when they can matter. onStrafe is the main handler: it updates the grounded tick counter, forces the sprint keybind pressed, and evaluates the allowMultiDirSprint flag from the multi-dir gates.

onPacketSend holds the silent filter: with All Directions and Silent enabled and the forward key released, any C0B with the START_SPRINTING action is cancelled, which keeps the server-side sprint state false during omni movement. onDisable restores the sprint keybind to the physical keyboard state and clears allowMultiDirSprint, so a toggle-off mid-sprint drops the state cleanly. The onPreMotion stub is empty; the module does all of its work from the strafe and packet events.

source StrafeEvent.java (per-tick cadence)

StrafeEvent.java42 lines · JavaOriginal ↗
1
package dev.rise.event.impl.other;
2
3
import dev.rise.event.api.Event;
4
import dev.rise.util.InstanceAccess;
5
import dev.rise.util.player.MoveUtil;
6
import lombok.AllArgsConstructor;
7
import lombok.Getter;
8
import lombok.Setter;
9
10
@Getter
11
@Setter
12
@AllArgsConstructor
13
public final class StrafeEvent extends Event implements InstanceAccess {
14
    private float forward, strafe, friction;
15
16
    public void setSpeedPartialStrafe(float friction, final float strafe) {
17
        final float remainder = 1 - strafe;
18
19
        if (forward != 0 && this.strafe != 0) {
20
            friction *= 0.91;
21
        }
22
23
        if (mc.thePlayer.onGround) {
24
            setSpeed(friction);
25
        } else {
26
            mc.thePlayer.motionX *= strafe;
27
            mc.thePlayer.motionZ *= strafe;
28
            setFriction(friction * remainder);
29
        }
30
    }
31
32
    public void setSpeed(final float speed, final double motionMultiplier) {
33
        setFriction(getForward() != 0 && getStrafe() != 0 ? speed * 0.99F : speed);
34
        mc.thePlayer.motionX *= motionMultiplier;
35
        mc.thePlayer.motionZ *= motionMultiplier;
36
    }
37
38
    public void setSpeed(final float speed) {
39
        setFriction(getForward() != 0 && getStrafe() != 0 ? speed * 0.99F : speed);
40
        MoveUtil.stop();
41
    }
42
}

What this file does

StrafeEvent is the per-movement-tick event the module hooks, carrying the forward and strafe input magnitudes and the friction value the movement code will apply, with setSpeed helpers that other movement modules use to rewrite the player's velocity. The event bus fires it on each movement tick the client processes, which is the cadence the Sprint handler uses: every fired event re-asserts the keybind and re-evaluates the multi-dir flag, so the sprint state cannot lapse between events.

The class implements InstanceAccess for the Minecraft singleton. For Sprint the event is a pure trigger; the handler reads the input state from the keyboard rather than from the event's own fields, so the event's role in this module is the per-tick cadence rather than the data it carries.

anticheat Countering Checks

The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.

anticheat ToggleFrequency (entity-action rate)

ToggleFrequency.java61 lines · Java
1
/*
2
 * This program is free software: you can redistribute it and/or modify
3
 *   it under the terms of the GNU General Public License as published by
4
 *   the Free Software Foundation, either version 3 of the License, or
5
 *   (at your option) any later version.
6
 *
7
 *   This program is distributed in the hope that it will be useful,
8
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 *   GNU General Public License for more details.
11
 *
12
 *   You should have received a copy of the GNU General Public License
13
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
 */
15
package fr.neatmonster.nocheatplus.checks.net;
16
17
import org.bukkit.entity.Player;
18
19
import fr.neatmonster.nocheatplus.checks.Check;
20
import fr.neatmonster.nocheatplus.checks.CheckType;
21
import fr.neatmonster.nocheatplus.players.IPlayerData;
22
import fr.neatmonster.nocheatplus.utilities.TickTask;
23
24
/**
25
 * The ToggleFrequency check is used to detect players who toggle certain actions too quickly (i.e.: sneaking).
26
 */
27
public class ToggleFrequency extends Check {
28
29
    /**
30
     * Instantiates a new toggle frequency check.
31
     */
32
    public ToggleFrequency() {
33
        super(CheckType.NET_TOGGLEFREQUENCY);
34
    }
35
36
    /**
37
     * Checks a player.
38
     * 
39
     * @param player
40
     *            the player
41
     * @param data
42
     * @param cc
43
     * @param pData
44
     * @return true, if successful
45
     */
46
    public boolean check(final Player player, final NetData data, final NetConfig cc, final IPlayerData pData) {
47
        boolean cancel = false;
48
        // (Addition to frequency is done in the listener for each toggle event)
49
        // Full time resolution
50
        final long actionFullTime = data.playerActionFreq.bucketDuration() * data.playerActionFreq.numberOfBuckets();
51
        /** Toggle action events counted */
52
        final float fullActionScore = data.playerActionFreq.score(1f) / TickTask.getLag(actionFullTime);
53
        final double violation = fullActionScore > cc.toggleActionLimit ? fullActionScore - cc.toggleActionLimit : 0.0;
54
        if (violation > 0.0) {
55
            data.toggleFrequencyVL += violation;
56
            cancel = executeActions(player, data.toggleFrequencyVL, violation, cc.toggleFrequencyActions).willCancel();
57
        }
58
        else data.toggleFrequencyVL *= 0.9;
59
        return cancel;
60
    }
61
}

How it counteracts this module

NCP handles the C0B stream through the ProtocolLib EntityActionAdapter, which adds one point to data.playerActionFreq per entity-action packet and then runs ToggleFrequency.check on the accumulated window. The check scores the full window against cc.toggleActionLimit, default 25 actions per second (NET_TOGGLEFREQUENCY_LIMIT, DefaultConfig line 578), with the configured actions cancelling at vl > 10. The adapter deliberately does not discern action types, so sprint, sneak and bed-leave toggles all feed the same bucket.

Against auto-sprint the check is mostly dormant: both Rise modes emit one START per enable and one STOP per disable, so the sustained rate is well under 25 per second, and the silent filter removes even those events for omni use. The check is the counter to rapid toggle spam, which is the wtap family, not the auto-sprint family; a player who binds the module to a key and taps it quickly, or combines it with a sprint-reset module, is what accumulates VL here. This entry is the honest baseline for the C0B rate, with the real pressure on these modules coming from the state checks below.

anticheat OmniSprint (direction vs sprint state)

OmniSprint.java32 lines · Java
1
package us.skidrevenant.azure.check.checks.motion;
2
3
import org.bukkit.Location;
4
import org.bukkit.event.player.PlayerMoveEvent;
5
import us.skidrevenant.azure.check.Check;
6
import us.skidrevenant.azure.stats.PlayerStats;
7
8
/**
9
 * @author SkidRevenant
10
 * at 30/05/2018
11
 */
12
public class OmniSprint extends Check {
13
    public OmniSprint(PlayerStats player) {
14
        super(player);
15
    }
16
17
    @Override
18
    public void onMove(Location from, Location to, PlayerMoveEvent event) {
19
        double deltaX = to.getX() - from.getX();
20
        double deltaZ = to.getZ() - from.getZ();
21
22
        float yaw = Math.abs(from.getYaw()) % 360;
23
24
        if (!player.getBukkitPlayer().isSprinting()) {
25
            return;
26
        }
27
28
        if (deltaX < 0.0 && deltaZ > 0.0 && yaw > 180.0f && yaw < 270.0f || deltaX < 0.0 && deltaZ < 0.0 && yaw > 270.0f && yaw < 360.0f || deltaX > 0.0 && deltaZ < 0.0 && yaw > 0.0f && yaw < 90.0f || deltaX > 0.0 && deltaZ > 0.0 && yaw > 90.0f && yaw < 180.0f) {
29
            onViolation("OmniSprint", 60000L, 0);
30
        }
31
    }
32
}

How it counteracts this module

Azure's OmniSprint runs on PlayerMoveEvent and returns immediately unless the Bukkit player is sprinting, which is the server-side state set by the C0B START_SPRINTING packet. When sprinting, it compares the move delta's quadrant against the yaw quadrant: the four mismatched pairs in the condition, where the delta moves into the quadrant opposite the facing, raise a violation with a 60000ms cooldown. The check is a direction validator: it trusts the sprint state and punishes movement that contradicts the facing.

Rise's module splits on the silent filter. With the forward key held, the C0B goes through and the server marks the player sprinting, so a diagonal strafe under All Directions presents a delta that contradicts the yaw and flags. With the forward key released, the silent filter cancels the START, the server-side sprint state stays false, and the check returns at its first line, so the pure sideways and backward sprint is invisible to it. The module's default Silent mode is therefore the designed bypass for this check, and disabling Silent for visible omni sprinting is what Azure punishes.

anticheat SprintA (hunger-gated sprint)

SprintA.java35 lines · Java
1
package ac.grim.grimac.checks.impl.sprint;
2
3
import ac.grim.grimac.api.storage.verbose.Verbose;
4
import ac.grim.grimac.checks.Check;
5
import ac.grim.grimac.checks.CheckData;
6
import ac.grim.grimac.checks.type.PostPredictionListener;
7
import ac.grim.grimac.player.GrimPlayer;
8
import ac.grim.grimac.utils.anticheat.update.PredictionComplete;
9
import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes;
10
11
@CheckData(name = "SprintA", stableKey = "grim.sprint.hunger", description = "Sprinting with too low hunger", setback = 0)
12
public class SprintA extends Check implements PostPredictionListener {
13
    private static final Verbose V = Verbose.of("hunger={uint}");
14
15
    public SprintA(GrimPlayer player) {
16
        super(player);
17
    }
18
19
    @Override
20
    public void onPredictionComplete(PredictionComplete predictionComplete) {
21
        if (!predictionComplete.isChecked()) return;
22
23
        // Players can sprint if they're able to fly
24
        // Players can also sprint if they are on a camel, regardless of their hunger level
25
        if (player.canFly || EntityTypes.isTypeInstanceOf(player.getVehicleType(), EntityTypes.CAMEL)) return;
26
27
        if (player.food <= 6.0F) {
28
            if (player.isSprinting) {
29
                flagWithSetback(V.write(verbose()).uint(player.food));
30
            } else {
31
                reward();
32
            }
33
        }
34
    }
35
}

How it counteracts this module

Grim's SprintA is a post-prediction hunger check: after the movement prediction completes, it flags when the player's food is at or below 6.0 while the player is sprinting, with setback 0, and rewards when not sprinting. Players who can fly and camel riders are exempt. The sprint state Grim maintains for the player is the server-visible claim, so the check measures the sprint against the hunger level.

Rise's module has no food gate of its own; it forces the keybind unconditionally, so whether the sprint holds while starving depends on the fork's vanilla stop logic. Rise 5.99 ships only the dev/ tree, so that stop logic is not verifiable from the snapshot; if the fork keeps the vanilla rule that hunger at or below 6 cancels sprinting, the module's forced key is overridden and SprintA never sees a starving sprint, and if not, the START packet with food below the threshold flags. Either way the honest statement is that the module contributes no hunger defense of its own, unlike the Sigma port which gates on food.

anticheat Arc v2 (no entity-action consumer)

WrapperPlayClientEntityAction.java114 lines · Java
1
/**
2
 * This file is part of PacketWrapper.
3
 * Copyright (C) 2012-2015 Kristian S. Strangeland
4
 * Copyright (C) 2015 dmulloy2
5
 *
6
 * PacketWrapper is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Lesser General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * PacketWrapper is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public License
17
 * along with PacketWrapper.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
package com.comphenix.packetwrapper;
20
21
import org.bukkit.World;
22
import org.bukkit.entity.Entity;
23
24
import com.comphenix.protocol.PacketType;
25
import com.comphenix.protocol.events.PacketContainer;
26
import com.comphenix.protocol.events.PacketEvent;
27
import com.comphenix.protocol.wrappers.EnumWrappers.PlayerAction;
28
29
public class WrapperPlayClientEntityAction extends AbstractPacket {
30
    public static final PacketType TYPE = PacketType.Play.Client.ENTITY_ACTION;
31
    
32
    public WrapperPlayClientEntityAction() {
33
        super(new PacketContainer(TYPE), TYPE);
34
        handle.getModifier().writeDefaults();
35
    }
36
    
37
    public WrapperPlayClientEntityAction(PacketContainer packet) {
38
        super(packet, TYPE);
39
    }
40
    
41
    /**
42
     * Retrieve Entity ID.
43
     * <p>
44
     * Notes: entity's ID
45
     * @return The current Entity ID
46
     */
47
    public int getEntityID() {
48
        return handle.getIntegers().read(0);
49
    }
50
51
    /**
52
     * Set Entity ID.
53
     * @param value - new value.
54
     */
55
    public void setEntityID(int value) {
56
        handle.getIntegers().write(0, value);
57
    }
58
59
    /**
60
     * Retrieve the entity of the painting that will be spawned.
61
     * @param world - the current world of the entity.
62
     * @return The spawned entity.
63
     */
64
    public Entity getEntity(World world) {
65
        return handle.getEntityModifier(world).read(0);
66
    }
67
68
    /**
69
     * Retrieve the entity of the painting that will be spawned.
70
     * @param event - the packet event.
71
     * @return The spawned entity.
72
     */
73
    public Entity getEntity(PacketEvent event) {
74
        return getEntity(event.getPlayer().getWorld());
75
    }
76
    
77
    /**
78
     * Retrieve Action ID.
79
     * <p>
80
     * Notes: the ID of the action, see below.
81
     * @return The current Action ID
82
     */
83
    public PlayerAction getAction() {
84
        return handle.getPlayerActions().read(0);
85
    }
86
    
87
    /**
88
     * Set Action ID.
89
     * @param value - new value.
90
     */
91
    public void setAction(PlayerAction value) {
92
        handle.getPlayerActions().write(0, value);
93
    }
94
    
95
    /**
96
     * Retrieve Jump Boost.
97
     * <p>
98
     * Notes: horse jump boost. Ranged from 0 -> 100.
99
     * @return The current Jump Boost
100
     */
101
    public int getJumpBoost() {
102
        return handle.getIntegers().read(1);
103
    }
104
    
105
    /**
106
     * Set Jump Boost.
107
     * @param value - new value.
108
     */
109
    public void setJumpBoost(int value) {
110
        handle.getIntegers().write(1, value);
111
    }
112
    
113
}

How it counteracts this module

Vrekt-Arc v2 has no entity-action consumer at all. The only artifact of the C0B packet in its tree is the ProtocolLib wrapper WrapperPlayClientEntityAction, a generated data holder that is never constructed by the anticheat: PacketListener subscribes only to FLYING, POSITION and POSITION_LOOK, USE_ENTITY, ARM_ANIMATION, HELD_ITEM_SLOT and BLOCK_PLACE (the soup auto-heal branch). No check reads the sprint action, validates sprint state, or measures toggle frequency, so the module's C0B traffic is invisible to Arc v2.

The honest consequence is that Arc v2 exerts no pressure on the sprint claim itself; its movement layer (Speed and MorePackets) sees only the position stream, where a sprint-speed delta without a sprint state is not distinguished from ordinary speed. This entry documents the gap rather than a counter: servers running Arc v2 get no detection from the C0B side of this module, and the module's silent filter does not need to hide anything from this anticheat.

← Back to Analysis Hub