Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
add TestCrash
Browse files Browse the repository at this point in the history
  • Loading branch information
strictpvp committed Feb 27, 2024
1 parent e97289e commit 0fe93f7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/me/reich/crash/Crash.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
public class Crash extends MeteorAddon {
public static final Logger LOG = LogUtils.getLogger();
public static final Category CATEGORY = new Category("ReichCrash");
public static final Category UTILCATEGORY = new Category("ReichUtils");
public static final HudGroup HUD_GROUP = new HudGroup("ReichCrash");
public static final String NAME = "ReichCrash";

Expand Down
46 changes: 46 additions & 0 deletions src/main/java/me/reich/crash/modules/TestCrash.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package me.reich.crash.modules;

import me.reich.crash.Crash;
import meteordevelopment.meteorclient.events.game.GameLeftEvent;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
import meteordevelopment.meteorclient.utils.network.PacketUtils;

public class TestCrash extends Module {
private final SettingGroup sgGeneral = settings.getDefaultGroup();

private final Setting<Integer> amount = sgGeneral.add(new IntSetting.Builder()
.name("amount")
.description("Packets per tick")
.defaultValue(15)
.min(1)
.sliderMax(100)
.build());

private final Setting<Boolean> autoDisable = sgGeneral.add(new BoolSetting.Builder()
.name("auto-disable")
.description("Disables module on kick.")
.defaultValue(true)
.build());

public TestCrash() {
super(Crash.CATEGORY, "TestCrash", "Netty");
}

@Override
public void onActivate(){

}

@EventHandler
public void onTick(TickEvent.Pre tickEvent) {

}

@EventHandler
private void onGameLeft(GameLeftEvent event) {
if (autoDisable.get()) toggle();
}
}

0 comments on commit 0fe93f7

Please sign in to comment.