Media module

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

1 implementationCLIENT

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)CLIENTsrc/main/java/thunder/hack/features/modules/client/Media.javaJava · 33 lines · 1.3 KB

Hides nicknames and skins of other players.

SettingsSkin ProtectNick Protect
Media.javaJava · Minecraft 26.2 · 33 lines · 1.3 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.client;
2
3
import meteordevelopment.orbit.EventHandler;
4
import net.minecraft.client.multiplayer.PlayerInfo;
5
import net.minecraft.network.chat.Component;
6
import net.minecraft.network.protocol.game.ClientboundSystemChatPacket;
7
import org.jetbrains.annotations.NotNull;
8
import thunder.hack.events.impl.PacketEvent;
9
import thunder.hack.injection.accesors.IGameMessageS2CPacket;
10
import thunder.hack.features.modules.Module;
11
import thunder.hack.setting.Setting;
12
13
public final class Media extends Module {
14
    public static final Setting<Boolean> skinProtect = new Setting<>("Skin Protect", true);
15
    public static final Setting<Boolean> nickProtect = new Setting<>("Nick Protect", true);
16
17
    public Media() {
18
        super("Media", Category.CLIENT);
19
    }
20
21
    @EventHandler
22
    public void onPacketReceive(PacketEvent.@NotNull Receive e) {
23
        if (e.getPacket() instanceof ClientboundSystemChatPacket pac && nickProtect.getValue()) {
24
            for (PlayerInfo ple : mc.player.connection.getOnlinePlayers()) {
25
                if (pac.content().getString().contains(ple.getProfile().name())) {
26
                    IGameMessageS2CPacket packet = e.getPacket();
27
                    packet.setContent(Component.nullToEmpty(pac.content().getString().replace(ple.getProfile().name(), "Protected")));
28
                }
29
            }
30
        }
31
    }
32
}
33