aaaaaaaaaaaaaa'

This commit is contained in:
Saturn5Vfive 2022-03-30 17:40:11 -05:00
parent f6ff797f36
commit 5174d265ab
2 changed files with 57 additions and 0 deletions

View file

@ -135,6 +135,7 @@ public class ModuleRegistry {
modules.add(new AnimationCrash()); modules.add(new AnimationCrash());
modules.add(new AutoFireball()); modules.add(new AutoFireball());
modules.add(new AutoFish()); modules.add(new AutoFish());
modules.add(new AutoRun());
} }
public static List<Module> getModules() { public static List<Module> getModules() {

View file

@ -0,0 +1,56 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.module.impl.grief;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.config.StringSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.util.Utils;
public class AutoRun extends Module {
final StringSetting commands = this.config.create(new StringSetting.Builder("/say real;/say hacked").name("Commands").description("commands to run when opped, ; separated").get());
public AutoRun() {
super("AutoRun", "automatically run stuff", ModuleType.GRIEF);
}
@Override
public void tick() {
if (ShadowMain.client.player.hasPermissionLevel(4)) {
Utils.Logging.message("You were opped, running commands");
String[] command = commands.getValue().split(";");
for (String cmd : command) {
ShadowMain.client.player.sendChatMessage(cmd);
}
this.setEnabled(false);
}
}
@Override
public void enable() {
}
@Override
public void disable() {
}
@Override
public String getContext() {
return null;
}
@Override
public void onWorldRender(MatrixStack matrices) {
}
@Override
public void onHudRender() {
}
}