MessageAppend module

MessageAppend: Minecraft 26.3 cheat module, full source for every implementation (1 client: MelaHack (ThunderHack fork)).

1 implementationMISC

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

MelaHack (ThunderHack fork)MISCsrc/main/java/thunder/hack/features/modules/misc/MessageAppend.javaJava · 41 lines · 1.4 KB

Appends text at the end of each chat message.

Settingsword
MessageAppend.javaJava · Minecraft 26.2 · 41 lines · 1.4 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.misc;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.network.protocol.game.ServerboundChatPacket;
5
import net.minecraft.world.item.Items;
6
import thunder.hack.core.Managers;
7
import thunder.hack.events.impl.PacketEvent;
8
import thunder.hack.features.modules.Module;
9
import thunder.hack.setting.Setting;
10
11
import java.util.Objects;
12
13
public class MessageAppend extends Module {
14
    public MessageAppend() {
15
        super("MessageAppend", Category.MISC);
16
    }
17
18
    private final Setting<String> word = new Setting<>("word", " TH RECODE");
19
    private String skip;
20
21
    @EventHandler
22
    public void onPacketSend(PacketEvent.Send e) {
23
        if (fullNullCheck()) return;
24
        if (e.getPacket() instanceof ServerboundChatPacket pac) {
25
            if (Objects.equals(pac.message(), skip)) {
26
                return;
27
            }
28
29
            // Чтоб не добавляло когда ты вводишь капчу на сервере
30
            if (mc.player.getMainHandItem().getItem() == Items.FILLED_MAP || mc.player.getOffhandItem().getItem() == Items.FILLED_MAP)
31
                return;
32
33
            if (pac.message().startsWith("/") || pac.message().startsWith(Managers.COMMAND.getPrefix()))
34
                return;
35
36
            skip = pac.message() + word.getValue();
37
            mc.player.connection.sendChat(pac.message() + word.getValue());
38
            e.cancel();
39
        }
40
    }
41
}