Added NoToast
This commit is contained in:
parent
7ad28944a4
commit
564e69ef80
|
@ -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())
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue