Skip to content

Commit

Permalink
Merge pull request #2 from OgmurHere/OgmurHere-patch-3
Browse files Browse the repository at this point in the history
adds garbage cleaner command
  • Loading branch information
Ogmur authored Feb 28, 2024
2 parents a0441a9 + 9a5461d commit 9b0422c
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package pwn.noobs.trouserstreak.commands;

import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.commands.Command;
import net.minecraft.command.CommandSource;
import org.jetbrains.annotations.NotNull;
import com.mojang.brigadier.arguments.FloatArgumentType;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
import net.minecraft.command.CommandSource;
import net.minecraft.text.Text;

import static com.mojang.brigadier.Command.SINGLE_SUCCESS;

public class GarbageCleanerCommand extends Command {
public GarbageCleanerCommand() {
super("gc", "Clear RAM."); // Courtesy of youtube.com/@ogmur
}

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(context -> {
{
ChatUtils.sendMsg(Text.of("Cleaning RAM."));}
System.gc();
{
ChatUtils.sendMsg(Text.of("RAM Cleared."));}
return SINGLE_SUCCESS;
});
}
}

0 comments on commit 9b0422c

Please sign in to comment.