Sigma 4.11 WorldTime module 2 files, 96 lines

Sigma 4.11 WorldTime: Full Source Analysis

Sigma 4.11's WorldTime is an unimplemented stub.

info/sigmaclient/module/impl/other/WorldTime.java · GitHub source ↗

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

Packets This Module Uses

Analysis

Overview

Sigma 4.11's WorldTime is an unimplemented stub. The module registers for EventTick and EventPacket, and its onEvent body contains both branches completely empty: the EventTick case and the EventPacket case each do nothing. The identical empty shell ships in Sigma 2.08 and 3.9, so the module has never had behavior in the public lineage; it appears to be a placeholder for a time-of-day override that was never filled in. A functional WorldTime would sit in the S03 path - the fork's NetHandlerPlayClient.handleTimeUpdate applies the server's world time through WorldClient.func_82738_a and setWorldTime - rewriting or freezing the packet's two long fields (world time and total world time) or the client's clock. As shipped, the module consumes events and discards them: the S03 stream reaches the handler untouched, the world clock runs exactly as the server dictates, and the module's wire footprint is zero.

The empty handler

onEvent is registered for both EventTick.class and EventPacket.class via @RegisterEvent, and the instanceof dispatch splits on the event type. Both branches are empty blocks: the EventTick case contains a blank statement and the EventPacket case contains a blank statement. There is no field access, no mc reference beyond the inherited Module base, no packet mutation, and no setting registration. The module contributes nothing to any event it receives; the only observable behavior is the dispatch itself.

Where a WorldTime would have hooked in

The fork's NetHandlerPlayClient.handleTimeUpdate (line 835) is the S03 consumer: it calls theWorld.func_82738_a(packetIn.func_149366_c()) to set the total world time and theWorld.setWorldTime(packetIn.func_149365_d()) to set the day phase. S03PacketTimeUpdate carries two longs - the world time and the total world time, with the total negated when the doDaylightCycle flag is false - read from the buffer in readPacketData. A time module in this lineage would either intercept the S03 in the EventPacket branch (which NetworkManager fires in channelRead0 before the handler) and rewrite the fields, or re-set the world clock from the EventTick branch. The empty branches mean neither hook exists; the S03 is processed by handleTimeUpdate with the server's values.

Wire fingerprint

There is none. The module sends no packets, cancels no packets, and rewrites no fields, so the S03 stream is byte-identical to an unmodified client's. The honest fingerprint of the module is the absence of one: the world time on the client equals the server's, day cycles run on schedule, and nothing in the packet log distinguishes the module from being disabled.

source WorldTime.java

WorldTime.java28 lines · JavaOriginal ↗
1
package info.sigmaclient.module.impl.other;
2
3
import info.sigmaclient.event.impl.EventTick;
4
import info.sigmaclient.event.Event;
5
import info.sigmaclient.event.RegisterEvent;
6
import info.sigmaclient.event.impl.EventPacket;
7
import info.sigmaclient.module.Module;
8
import info.sigmaclient.module.data.ModuleData;
9
10
/**
11
 * Created by Arithmo on 5/6/2017 at 7:52 PM.
12
 */
13
public class WorldTime extends Module {
14
15
    public WorldTime(ModuleData data) {
16
        super(data);
17
    }
18
19
    @RegisterEvent(events = {EventTick.class, EventPacket.class})
20
    public void onEvent(Event event) {
21
        if (event instanceof EventTick) {
22
23
        } else if (event instanceof EventPacket) {
24
25
        }
26
    }
27
28
}

What this file does

The module is this file alone, authored by Arithmo on 5/6/2017, and it is a skeleton. The constructor passes ModuleData through to the superclass; onEvent is annotated for EventTick and EventPacket, and its if/else-if dispatch contains two empty branches. Nothing is read, written, cancelled or sent in either case. The same file - byte-for-byte the same empty body - ships in the Sigma 2.08 and 3.9 trees, which confirms the stub is not a 4.11 regression but the module's permanent state in the public lineage. The registration of both event types is the only signal of intent: the module was meant to act on the tick loop, the packet stream, or both, and neither action was ever written. Any time-of-day functionality would have to be added here.

source S03PacketTimeUpdate.java (the packet a WorldTime would touch)

S03PacketTimeUpdate.java68 lines · JavaOriginal ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
5
import net.minecraft.network.INetHandler;
6
import net.minecraft.network.Packet;
7
import net.minecraft.network.PacketBuffer;
8
import net.minecraft.network.play.INetHandlerPlayClient;
9
10
public class S03PacketTimeUpdate implements Packet {
11
    private long field_149369_a;
12
    private long field_149368_b;
13
    private static final String __OBFID = "CL_00001337";
14
15
    public S03PacketTimeUpdate() {
16
    }
17
18
    public S03PacketTimeUpdate(long p_i45230_1_, long p_i45230_3_, boolean p_i45230_5_) {
19
        this.field_149369_a = p_i45230_1_;
20
        this.field_149368_b = p_i45230_3_;
21
22
        if (!p_i45230_5_) {
23
            this.field_149368_b = -this.field_149368_b;
24
25
            if (this.field_149368_b == 0L) {
26
                this.field_149368_b = -1L;
27
            }
28
        }
29
    }
30
31
    /**
32
     * Reads the raw packet data from the data stream.
33
     */
34
    public void readPacketData(PacketBuffer data) throws IOException {
35
        this.field_149369_a = data.readLong();
36
        this.field_149368_b = data.readLong();
37
    }
38
39
    /**
40
     * Writes the raw packet data to the data stream.
41
     */
42
    public void writePacketData(PacketBuffer data) throws IOException {
43
        data.writeLong(this.field_149369_a);
44
        data.writeLong(this.field_149368_b);
45
    }
46
47
    /**
48
     * Passes this Packet on to the NetHandler for processing.
49
     */
50
    public void processPacket(INetHandlerPlayClient handler) {
51
        handler.handleTimeUpdate(this);
52
    }
53
54
    public long func_149366_c() {
55
        return this.field_149369_a;
56
    }
57
58
    public long func_149365_d() {
59
        return this.field_149368_b;
60
    }
61
62
    /**
63
     * Passes this Packet on to the NetHandler for processing.
64
     */
65
    public void processPacket(INetHandler handler) {
66
        this.processPacket((INetHandlerPlayClient) handler);
67
    }
68
}

What this file does

This is the packet class in the module's domain, and it shows exactly what a working WorldTime would rewrite. The class holds two longs: field_149369_a, the current world time (day phase), and field_149368_b, the total world time, which the constructor negates when the doDaylightCycle flag is false (a negative total freezes the cycle). readPacketData reads both longs from the buffer and writePacketData writes them back. The fork's handleTimeUpdate consumes them through func_149366_c() and func_149365_d() to drive WorldClient's clock. Because S03 is clientbound and its payload only feeds local rendering, a module that rewrote these fields (or the world clock after them) would change nothing the server can observe - which is the point the countering section makes: even a completed WorldTime would have no anticheat counter, because no anticheat inspects the S03 payload. As shipped, of course, the module never touches the packet at all.

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 PacketFrequency (general packet-rate ledger)

PacketFrequency.java79 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.utilities.TickTask;
22
23
/**
24
 * Fall-back check for pre 1.9: Limit the overall packet frequency, aiming at
25
 * crash exploits only. Thus the default actions should be kicking, as this
26
 * won't distinguish type of packets with the global packet count.
27
 * 
28
 * @author asofold
29
 *
30
 */
31
public class PacketFrequency extends Check {
32
33
    public PacketFrequency() {
34
        super(CheckType.NET_PACKETFREQUENCY);
35
    }
36
37
    /**
38
     * Actual state.
39
     * 
40
     * @param player
41
     * @param data
42
     *           
43
     * @param cc
44
     *            
45
     * @return If to cancel a packet event.
46
     */
47
    public boolean check(final Player player, final NetData data, final NetConfig cc) {
48
        data.packetFrequency.add(System.currentTimeMillis(), 1f);
49
        final long fDur = data.packetFrequency.bucketDuration() * data.packetFrequency.numberOfBuckets();
50
        double amount = data.packetFrequency.score(1f) * 1000f / (float) fDur;
51
        //        if (data.debug) {
52
        //            debug(player, "Basic amount: " + amount);
53
        //        }
54
        if (amount > cc.packetFrequencyPacketsPerSecond) {
55
            amount /= TickTask.getLag(fDur);
56
            if (amount > cc.packetFrequencyPacketsPerSecond) {
57
                if (executeActions(player, amount - cc.packetFrequencyPacketsPerSecond, 1.0, cc.packetFrequencyActions).willCancel()) {
58
                    return true;
59
                }
60
            }
61
        }
62
        return false; // Cancel state.
63
    }
64
65
    /**
66
     * Allow to relax the count by 1, e.g. with outgoing teleport.
67
     * 
68
     * @param player
69
     * @param data
70
     * 
71
     * @param cc
72
     * 
73
     * @return
74
     */
75
    public void relax(final Player player, final NetData data, final NetConfig cc) {
76
        // TODO: Concept (not more locking, instead a counter (optimistic)).
77
    }
78
79
}

How it counteracts this module

PacketFrequency is NCP's general volume guard: every qualifying packet adds a point to data.packetFrequency, and the check scores the bucket window into packets-per-second (score * 1000 / window duration), flagging when the rate exceeds cc.packetFrequencyPacketsPerSecond, with a TickTask lag adjustment before the actions fire.

It is included here as the nearest general stream guard, and the honest finding is that it cannot see the module in either direction. The ledger counts only the serverbound packets NCP chooses to feed it (keepalives, transactions and flying packets, per NetStatic's wiring), while the module's domain - the clientbound S03 time stream - never enters it, and the shipped stub emits nothing at all. The check's existence is the closest NCP comes to policing the volume of traffic the module's domain lives in, which is to say it polices the wrong direction and the wrong side.

anticheat FlyingFrequency (C03 rate)

FlyingFrequency.java68 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.checks.net.model.DataPacketFlying;
22
import fr.neatmonster.nocheatplus.players.IPlayerData;
23
import fr.neatmonster.nocheatplus.utilities.TickTask;
24
25
26
/**
27
 * Check the frequency of (pos/look/) flying packets, disregarding packet content.
28
 * 
29
 * @author asofold
30
 *
31
 */
32
public class FlyingFrequency extends Check {
33
34
    public FlyingFrequency() {
35
        super(CheckType.NET_FLYINGFREQUENCY);
36
    }
37
38
    /**
39
     * Always update data, check bypass on violation only.
40
     * 
41
     * @param player
42
     * @param packetData
43
     * @param time
44
     * @param data
45
     * @param cc
46
     * @param pData
47
     * @return
48
     */
49
    public boolean check(final Player player, final DataPacketFlying packetData, final long time, 
50
                         final NetData data, final NetConfig cc, final IPlayerData pData) {
51
        boolean cancel = false;
52
        data.flyingFrequencyAll.add(time, 1f);
53
        final float allScore = data.flyingFrequencyAll.score(1f);
54
        final float fullTime = data.flyingFrequencyAll.bucketDuration() * data.flyingFrequencyAll.numberOfBuckets();
55
        float amount = allScore / cc.flyingFrequencySeconds;
56
        // Check if packets are above frequency limit
57
        if (amount > cc.flyingFrequencyPPS) {
58
            // Scale according to current lag factor
59
            amount /= TickTask.getLag((long)fullTime);
60
            // Re-check if packets are still above limit.
61
            if (amount > cc.flyingFrequencyPPS) {
62
                double violation = amount - cc.flyingFrequencyPPS;
63
                cancel = executeActions(player, violation, 1.0 / cc.flyingFrequencySeconds, cc.flyingFrequencyActions).willCancel();
64
            }
65
        }
66
        return cancel;
67
    }
68
}

How it counteracts this module

FlyingFrequency bounds the rate of C03 flying packets: each one adds a point to data.flyingFrequencyAll, the check divides the window score by cc.flyingFrequencySeconds for a packets-per-second figure, and flags when it exceeds cc.flyingFrequencyPPS.

Like PacketFrequency it is a serverbound-rate guard, and like PacketFrequency it is doubly irrelevant to WorldTime: it observes only the C03 stream the module never touches, and the S03 time packets flow the other way entirely. The two NCP rate checks together establish the shape of NCP's packet layer - volume-based, serverbound-only - which has no concept of a clientbound packet's payload. There is no NCP check on world time because there is nothing in NCP's model of a cheater that involves it.

anticheat Arc v2 (no S03 consumer)

PacketListener.java215 lines · Java
1
package me.vrekt.arc.listener.packet;
2
3
import com.comphenix.packetwrapper.WrapperPlayClientBlockPlace;
4
import com.comphenix.packetwrapper.WrapperPlayClientFlying;
5
import com.comphenix.packetwrapper.WrapperPlayClientHeldItemSlot;
6
import com.comphenix.packetwrapper.WrapperPlayClientPosition;
7
import com.comphenix.packetwrapper.WrapperPlayClientPositionLook;
8
import com.comphenix.packetwrapper.WrapperPlayClientUseEntity;
9
import com.comphenix.protocol.PacketType;
10
import com.comphenix.protocol.ProtocolLibrary;
11
import com.comphenix.protocol.ProtocolManager;
12
import com.comphenix.protocol.events.ListenerPriority;
13
import com.comphenix.protocol.events.PacketAdapter;
14
import com.comphenix.protocol.events.PacketEvent;
15
import com.comphenix.protocol.wrappers.EnumWrappers;
16
import me.vrekt.arc.Arc;
17
import me.vrekt.arc.check.CheckType;
18
import me.vrekt.arc.check.combat.KillAura;
19
import me.vrekt.arc.check.inventory.AutoHeal;
20
import me.vrekt.arc.check.moving.MorePackets;
21
import me.vrekt.arc.data.combat.FightData;
22
import me.vrekt.arc.data.inventory.InventoryData;
23
import me.vrekt.arc.data.moving.MovingData;
24
import me.vrekt.arc.listener.ACheckListener;
25
import org.bukkit.Material;
26
import org.bukkit.entity.Player;
27
import org.bukkit.inventory.ItemStack;
28
import org.bukkit.plugin.Plugin;
29
30
public class PacketListener implements ACheckListener {
31
    private final MorePackets MORE_PACKETS = (MorePackets) Arc.getCheckManager().getCheck(CheckType.MOREPACKETS);
32
    private final KillAura KILL_AURA = (KillAura) Arc.getCheckManager().getCheck(CheckType.KILLAURA);
33
    private final AutoHeal AUTO_HEAL = (AutoHeal) CHECK_MANAGER.getCheck(CheckType.AUTOHEAL);
34
35
    private boolean listening = false;
36
37
    /**
38
     * Stop listening.
39
     */
40
    public void stopListening() {
41
        ProtocolLibrary.getProtocolManager().removePacketListeners(Arc.getPlugin());
42
    }
43
44
    public void startListening(Plugin plugin, ProtocolManager manager) {
45
        listening = true;
46
47
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.HIGHEST, PacketType.Play.Client.FLYING) {
48
            @Override
49
            public void onPacketReceiving(PacketEvent event) {
50
                Player player = event.getPlayer();
51
                MovingData data = MovingData.getData(player);
52
53
                if (data.cancelMovingPackets()) {
54
                    event.setCancelled(true);
55
                }
56
57
                // Update ground info.
58
                WrapperPlayClientFlying flying = new WrapperPlayClientFlying(event.getPacket());
59
                data.setFlyingClientOnGround(flying.getOnGround());
60
61
                // Update packet info.
62
                data.setFlyingPackets(data.getFlyingPackets() + 1);
63
                boolean cancel = updateAndCheck(player, data);
64
                if (cancel) {
65
                    event.setCancelled(true);
66
                }
67
68
            }
69
        });
70
71
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.HIGHEST, PacketType.Play.Client.POSITION,
72
                PacketType.Play.Client.POSITION_LOOK) {
73
            @Override
74
            public void onPacketReceiving(PacketEvent event) {
75
                Player player = event.getPlayer();
76
                MovingData data = MovingData.getData(player);
77
78
                if (data.cancelMovingPackets()) {
79
                    event.setCancelled(true);
80
                }
81
82
                // Update ground info.
83
                if (event.getPacket().getType().equals(PacketType.Play.Client.POSITION)) {
84
                    WrapperPlayClientPosition position = new WrapperPlayClientPosition(event.getPacket());
85
                    data.setPositionClientOnGround(position.getOnGround());
86
                } else {
87
                    WrapperPlayClientPositionLook position = new WrapperPlayClientPositionLook(event.getPacket());
88
                    data.setPositionClientOnGround(position.getOnGround());
89
                }
90
91
                // Update packet info.
92
                data.setPositionPackets(data.getPositionPackets() + 1);
93
                boolean cancel = updateAndCheck(player, data);
94
                if (cancel) {
95
                    event.setCancelled(true);
96
                }
97
            }
98
        });
99
100
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.NORMAL, PacketType.Play.Client.USE_ENTITY) {
101
            @Override
102
            public void onPacketReceiving(PacketEvent event) {
103
                Player player = event.getPlayer();
104
                FightData data = FightData.getData(player);
105
                data.setTotalAttacks(data.getTotalAttacks() + 1);
106
107
            }
108
        });
109
110
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.HIGHEST, PacketType.Play.Client.ARM_ANIMATION) {
111
            @Override
112
            public void onPacketReceiving(PacketEvent event) {
113
                Player player = event.getPlayer();
114
                FightData data = FightData.getData(player);
115
                data.setLastArmSwing(System.currentTimeMillis());
116
            }
117
        });
118
119
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.HIGHEST, PacketType.Play.Client.HELD_ITEM_SLOT) {
120
            @Override
121
            public void onPacketReceiving(PacketEvent event) {
122
                Player player = event.getPlayer();
123
                InventoryData data = InventoryData.getData(player);
124
                WrapperPlayClientHeldItemSlot itemSlotChange = new WrapperPlayClientHeldItemSlot(event.getPacket());
125
                int slot = itemSlotChange.getSlot();
126
                ItemStack item = player.getInventory().getItem(slot);
127
                if (item != null && item.getType() == Material.MUSHROOM_SOUP) {
128
                    data.setLastItemSwitch(System.currentTimeMillis());
129
                }
130
131
            }
132
        });
133
134
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.HIGHEST, PacketType.Play.Client.BLOCK_PLACE) {
135
            @Override
136
            public void onPacketReceiving(PacketEvent event) {
137
                Player player = event.getPlayer();
138
                InventoryData data = InventoryData.getData(player);
139
                WrapperPlayClientBlockPlace blockPlace = new WrapperPlayClientBlockPlace(event.getPacket());
140
                ItemStack item = blockPlace.getHeldItem();
141
142
                if (item != null && item.getType() == Material.MUSHROOM_SOUP) {
143
                    AUTO_HEAL.check(data, player);
144
                }
145
            }
146
        });
147
148
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.HIGHEST, PacketType.Play.Client.USE_ENTITY) {
149
            @Override
150
            public void onPacketReceiving(PacketEvent event) {
151
                Player player = event.getPlayer();
152
                FightData data = FightData.getData(player);
153
                WrapperPlayClientUseEntity useEntity = new WrapperPlayClientUseEntity(event.getPacket());
154
                if (useEntity.getType() == EnumWrappers.EntityUseAction.ATTACK) {
155
                    // we attacked, lets update our data and check.
156
                    data.setAttackPackets(data.getAttackPackets() + 1);
157
                    boolean canCheckKillAura = Arc.getCheckManager().canCheckPlayer(player, CheckType.KILLAURA);
158
                    if (canCheckKillAura) {
159
                        boolean failed = KILL_AURA.checkFrequency(data, player);
160
                        if (failed) {
161
                            event.setCancelled(true);
162
                        }
163
                    }
164
                }
165
            }
166
        });
167
168
    }
169
170
    /**
171
     * Checks MorePackets and updates/resets data.
172
     *
173
     * @param player the player
174
     * @param data   the MovingData
175
     * @return true if we should cancel.
176
     */
177
    private boolean updateAndCheck(Player player, MovingData data) {
178
        if (data.getLastPacketUpdate() == 0) {
179
            data.setLastPacketUpdate(System.currentTimeMillis());
180
            return false;
181
        }
182
183
        boolean canCheckMorePackets = Arc.getCheckManager().canCheckPlayer(player, CheckType.MOREPACKETS);
184
185
        // if we cant check reset data and return.
186
        if (!canCheckMorePackets) {
187
            data.setLastPacketUpdate(System.currentTimeMillis());
188
            data.setPositionPackets(0);
189
            data.setFlyingPackets(0);
190
191
            data.setCancelMovingPackets(false);
192
            return false;
193
        }
194
195
        long timeElapsed = System.currentTimeMillis() - data.getLastPacketUpdate();
196
        if (timeElapsed >= 1000) {
197
            data.setCancelMovingPackets(false);
198
            // its been a second lets check.
199
            boolean check = MORE_PACKETS.check(player, data);
200
201
            data.setPositionPackets(0);
202
            data.setFlyingPackets(0);
203
            data.setLastPacketUpdate(System.currentTimeMillis());
204
            return check;
205
        }
206
        return false;
207
    }
208
209
    /**
210
     * @return if we are listening for packets.
211
     */
212
    public boolean isListening() {
213
        return listening;
214
    }
215
}

How it counteracts this module

Arc v2's PacketListener enumerates every packet the anticheat subscribes to, and the list is entirely serverbound: FLYING, POSITION and POSITION_LOOK for the movement layer, USE_ENTITY, ARM_ANIMATION, HELD_ITEM_SLOT and BLOCK_PLACE for combat and soup handling. There is no Play.Server adapter of any kind, so S03PacketTimeUpdate is not merely unchecked - it is never even seen by the anticheat's packet pipeline.

The entry documents the strongest possible statement about WorldTime: the module's entire domain is invisible to Arc v2 because Arc v2 observes no clientbound packets at all. Combined with the two NCP rate checks, the countering picture is complete - of the anticheats in this reference set, none inspects the S03 payload or the client's world clock, which is why a time-override module, implemented or not, has no anticheat counter. World time is cosmetic state the server broadcasts and trusts the client to render; the stub's emptiness changes nothing about that.

← Back to Analysis Hub