add removed commands
This commit is contained in:
@@ -66,11 +66,13 @@
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
- `.center`
|
- `.center`
|
||||||
|
- `.clear-chat` (Removed from meteor in [9aebf](https://github.com/MeteorDevelopment/meteor-client/commit/9aebf6a0e4ffa739d901c8b8d7f48d07af2fe839))
|
||||||
- `.ghost` (Ported from [AntiGhost](https://github.com/gbl/AntiGhost/blob/fabric_1_16/src/main/java/de/guntram/mcmod/antighost/AntiGhost.java))
|
- `.ghost` (Ported from [AntiGhost](https://github.com/gbl/AntiGhost/blob/fabric_1_16/src/main/java/de/guntram/mcmod/antighost/AntiGhost.java))
|
||||||
- `.save-skin`
|
- `.save-skin`
|
||||||
- `.heads`
|
- `.heads`
|
||||||
- `.seed` (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1300))
|
- `.seed` (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1300))
|
||||||
- `.setblock`
|
- `.setblock`
|
||||||
|
- `.panic` (Removed from meteor in [dd5f8](https://github.com/MeteorDevelopment/meteor-client/commit/dd5f88a0dbb2753372bf37c58461b886104dc990))
|
||||||
- `.set-velocity`
|
- `.set-velocity`
|
||||||
- `.teleport`
|
- `.teleport`
|
||||||
- `.terrain-export` (Ported from [BleachHack](https://github.com/BleachDrinker420/BleachHack/blob/master/BleachHack-Fabric-1.17/src/main/java/bleach/hack/command/commands/CmdTerrain.java))
|
- `.terrain-export` (Ported from [BleachHack](https://github.com/BleachDrinker420/BleachHack/blob/master/BleachHack-Fabric-1.17/src/main/java/bleach/hack/command/commands/CmdTerrain.java))
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
|
|||||||
// Commands
|
// Commands
|
||||||
Commands commands = Commands.get();
|
Commands commands = Commands.get();
|
||||||
commands.add(new CenterCommand());
|
commands.add(new CenterCommand());
|
||||||
|
commands.add(new ClearChatCommand());
|
||||||
commands.add(new GhostCommand());
|
commands.add(new GhostCommand());
|
||||||
commands.add(new GiveCommand());
|
commands.add(new GiveCommand());
|
||||||
commands.add(new SaveSkinCommand());
|
commands.add(new SaveSkinCommand());
|
||||||
@@ -82,6 +83,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
|
|||||||
commands.add(new KickCommand());
|
commands.add(new KickCommand());
|
||||||
// commands.add(new LocateCommand()); I wish it was that simple -_-
|
// commands.add(new LocateCommand()); I wish it was that simple -_-
|
||||||
commands.add(new ServerCommand());
|
commands.add(new ServerCommand());
|
||||||
|
commands.add(new PanicCommand());
|
||||||
commands.add(new SetBlockCommand());
|
commands.add(new SetBlockCommand());
|
||||||
commands.add(new SetVelocityCommand());
|
commands.add(new SetVelocityCommand());
|
||||||
commands.add(new TeleportCommand());
|
commands.add(new TeleportCommand());
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package anticope.rejects.commands;
|
||||||
|
|
||||||
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
|
import meteordevelopment.meteorclient.systems.commands.Command;
|
||||||
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
|
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
|
||||||
|
|
||||||
|
public class ClearChatCommand extends Command {
|
||||||
|
public ClearChatCommand() {
|
||||||
|
super("clear-chat", "Clears your chat.", "clear", "cls");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void build(LiteralArgumentBuilder<CommandSource> builder) {
|
||||||
|
builder.executes(context -> {
|
||||||
|
mc.inGameHud.getChatHud().clear(false);
|
||||||
|
return SINGLE_SUCCESS;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
26
src/main/java/anticope/rejects/commands/PanicCommand.java
Normal file
26
src/main/java/anticope/rejects/commands/PanicCommand.java
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
package anticope.rejects.commands;
|
||||||
|
|
||||||
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
|
import meteordevelopment.meteorclient.systems.commands.Command;
|
||||||
|
import meteordevelopment.meteorclient.systems.modules.Module;
|
||||||
|
import meteordevelopment.meteorclient.systems.modules.Modules;
|
||||||
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
|
||||||
|
|
||||||
|
public class PanicCommand extends Command {
|
||||||
|
public PanicCommand() {
|
||||||
|
super("panic", "Disables all modules.", "disable-all");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void build(LiteralArgumentBuilder<CommandSource> builder) {
|
||||||
|
builder.executes(context -> {
|
||||||
|
new ArrayList<>(Modules.get().getActive()).forEach(Module::toggle);
|
||||||
|
|
||||||
|
return SINGLE_SUCCESS;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user