Added NoToast

This commit is contained in:
B2H990 2021-05-16 16:32:30 -04:00
parent 7ad28944a4
commit 564e69ef80
2 changed files with 21 additions and 0 deletions

View File

@ -172,6 +172,7 @@ public final class ModuleManager {
add(new FakePlayerModule());
add(new FriendTabModule());
add(new AmbianceModule());
add(new NoToast());
// p2w experience
if (Seppuku.INSTANCE.getCapeManager().hasCape())

View File

@ -0,0 +1,20 @@
package me.rigamortis.seppuku.impl.module.misc;
import me.rigamortis.seppuku.api.event.player.EventUpdateWalkingPlayer;
import me.rigamortis.seppuku.api.module.Module;
import net.minecraft.client.Minecraft;
import team.stiff.pomelo.impl.annotated.handler.annotation.Listener;
public final class NoToast extends Module {
public NoToast() {
super("NoToast", new String[]{"Toast"}, "Prevents Mojang Harrasment", "NONE", -1, ModuleType.WORLD);
}
final Minecraft mc = Minecraft.getMinecraft();
@Listener
public void onWalkingUpdate(EventUpdateWalkingPlayer event) {
mc.getToastGui().clear();
}
}