Rise 5.99 AntiCheat (Rise framework) module 2 files, 79 lines

Rise 5.99 AntiCheat (Rise framework): Full Source Analysis

Rise 5.99 ships a spectator anticheat that watches every other player on the server.

dev/rise/anticheat/AntiCheat.java · GitHub source ↗

Published 2026-08-13 · Updated 2026-08-13

Analysis

Overview

Rise 5.99 ships a spectator anticheat that watches every other player on the server. The framework is gated by the AntiCheat module in the OTHER category, whose Alerts setting selects the output channel; when that module is enabled, EventHandler feeds every received and every sent packet into AntiCheat.handle, which fans out to a per-UUID PlayerData map. Each PlayerData wraps the tracked player's EntityOtherPlayerMP, rebuilds its position from the S14 relative-move family and S18 teleports, derives ground state from the local block cache, and dispatches every packet to the eight registered checks. Violations flow through AlertManager, which prints a hover-enriched chat line or ships the alert to the server as a C01 chat message. This analysis is the detection side: the framework itself is the countering layer for other players' cheats, so the countering section is empty by design.

Architecture

AntiCheat.java is a thin facade. It owns a ConcurrentHashMap keyed by player UUID, a RegistrationListener that inserts and removes PlayerData on entity spawn and destroy, and an AlertManager. The constructor calls CheckManager.setup(), which reflectively collects the (PlayerData) constructors of the classes in the CHECKS array; loadChecks instantiates them per tracked player. EventHandler is the wiring: on PacketReceiveEvent and on PacketSendEvent, when the AntiCheat module is enabled, it calls getAntiCheat().handle(event.getPacket()), and the module's onPreMotion calls incrementTick() so the per-player tick counters advance once per client tick. PlayerData.handle guards every packet with a bot check, so the framework never evaluates entities Rise itself spawned as decoys.

Movement reconstruction

PlayerData tracks the watched player's server-side position from the clientbound stream. S15 rel-moves and S17 look-moves accumulate serverPosX/Y/Z in fixed point and divide by 32.0 into world coordinates, carrying lastX/lastY/lastZ and the per-axis deltas; S17 and S16 look packets refresh yaw and pitch. S18 teleports replace the position wholesale and reset ticksSinceLastTeleport; S12 velocity resets ticksSinceLastVelocity. Ground state is never taken from the packets: onGround and isRoughlyGround probe four corner blocks 0.43 and 0.99 below the tracked position against BlockAir in the local world cache, and grounded positions are snapshotted into groundX/groundY/groundZ. That block-cache ground truth is what the ground-spoof and speed checks key on.

The check set

CheckManager registers eight checks. AutoClickerA (combat) counts the tracked player's S0B arm animations between relative moves and fails when more than three swings arrive per move with the buffer at three; KeepSprintA (combat) averages four-sample speeds before and during attacks and fails on a speed boost above 0.15 while grounded at buffer 15, with a hurtTime of 7 or more on any nearby player resetting the attack window. SpeedA flags a landing whose horizontal direction diverges more than 30 degrees from the air-drag direction at buffer 6; Omnisprint fails constant-speed ground movement whose yaw disagrees with the move angle by over 90 degrees at buffer 4. EagleA pairs an air-state rel-move with an S1C sneak flag (metadata byte 2) arriving within two ticks, buffer 10. GroundSpoofA and GroundSpoofB cross-check the S14 onGround flag against the block-cache ground state with a y modulo 0.5 test, buffer 2, both disabled on Hypixel. InvalidA fails outright when the tracked rotation pitch exceeds 90. InvManager under movement/other is dead code: it is never added to the CHECKS array.

source AntiCheat.java (framework entry)

AntiCheat.java35 lines · JavaOriginal ↗
1
package dev.rise.anticheat;
2
3
import dev.rise.anticheat.alert.AlertManager;
4
import dev.rise.anticheat.check.manager.CheckManager;
5
import dev.rise.anticheat.data.PlayerData;
6
import dev.rise.anticheat.listener.RegistrationListener;
7
import lombok.Getter;
8
import net.minecraft.network.Packet;
9
10
import java.util.Map;
11
import java.util.UUID;
12
import java.util.concurrent.ConcurrentHashMap;
13
14
@Getter
15
public final class AntiCheat {
16
17
    private final Map<UUID, PlayerData> playerMap = new ConcurrentHashMap<>();
18
19
    private final RegistrationListener registrationListener = new RegistrationListener();
20
    private final AlertManager alertManager = new AlertManager();
21
22
    public AntiCheat() {
23
        CheckManager.setup();
24
    }
25
26
    public void handle(final Packet<?> packet) {
27
        this.playerMap.values().forEach(playerData -> playerData.handle(packet));
28
    }
29
30
    public void incrementTick() {
31
        for (PlayerData data : playerMap.values()) {
32
            data.incrementTick();
33
        }
34
    }
35
}

What this file does

The facade is 35 lines. handle(packet) iterates playerMap.values() and calls PlayerData.handle on each, so every received or sent packet is evaluated by every tracked player's checks, and the checks themselves decide which packets they care about. incrementTick() advances ticksSinceLastVelocity and ticksSinceLastTeleport for every tracked player, the two counters that gate the speed and ground-spoof checks. The constructor wires CheckManager.setup() once; RegistrationListener and AlertManager are fields the facade exposes through Lombok @Getter. The map is a ConcurrentHashMap because packets arrive on the netty thread while spawns and ticks run on the main thread.

source AutoClickerA.java (combat check)

AutoClickerA.java44 lines · JavaOriginal ↗
1
package dev.rise.anticheat.check.impl.combat.autoclicker;
2
3
import dev.rise.anticheat.check.Check;
4
import dev.rise.anticheat.check.api.CheckInfo;
5
import dev.rise.anticheat.data.PlayerData;
6
import dev.rise.anticheat.util.PacketUtil;
7
import dev.rise.util.math.TimeUtil;
8
import net.minecraft.network.Packet;
9
import net.minecraft.network.play.server.S0BPacketAnimation;
10
11
@CheckInfo(name = "AutoClicker", type = "A", description = "Detects clicking too fast")
12
public final class AutoClickerA extends Check {
13
14
    private final TimeUtil timer = new TimeUtil();
15
    private int swings;
16
17
    public AutoClickerA(final PlayerData data) {
18
        super(data);
19
    }
20
21
    @Override
22
    public void handle(final Packet<?> packet) {
23
        if (packet instanceof S0BPacketAnimation) {
24
            final S0BPacketAnimation wrapper = (S0BPacketAnimation) packet;
25
            if (wrapper.getEntityID() == data.getPlayer().getEntityId())
26
                swings++;
27
        }
28
29
        if (PacketUtil.isRelMove(packet)) {
30
            if (swings > 3) {
31
                if (getBuffer() >= 3)
32
                    fail();
33
34
                increaseBuffer();
35
                timer.reset();
36
            } else if (timer.hasReached(1000L)) {
37
                decreaseBuffer();
38
                timer.reset();
39
            }
40
41
            swings = 0;
42
        }
43
    }
44
}

What this file does

The combat-side representative, and the only combat check whose source is compact enough to embed whole. Its handle() shows the framework contract: filter the packet by type and entity id, accumulate state, and turn buffer into a violation. On an S0B arm animation for the tracked entity it increments a swing counter; on the next relative move (S15/S16/S17 via PacketUtil.isRelMove) it evaluates: a move carrying more than three swings raises the buffer and, once the buffer sits at three, fail() fires; otherwise a one-second TimeUtil window decays the buffer back down. The swing count resets on every move, so the check keys on swings per movement tick, the same density signal server-side autoclicker checks use. It also demonstrates the base Check helpers: fail() bumps violations and routes through AlertManager, increaseBuffer caps at 10000 and decreaseBuffer floors at 0.

← Back to Analysis Hub