This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
generated from MeteorDevelopment/meteor-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |