- Статус
- Оффлайн
- Регистрация
- 14 Янв 2023
- Сообщения
- 2
- Реакции
- 0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Код:
public class AntiFlag extends Module {
public static BooleanSetting disable = new BooleanSetting("Auto Disable", true, () -> true);
public AntiFlag() {
super("AntiFlag", ModuleCategory.Movement);
addSettings(disable);
}
@EventTarget
public void onReceivePacket(EventReceivePacket event) {
if (isEnabled() &&
event.getPacket() instanceof net.minecraft.network.play.server.SPacketPlayerPosLook) {
if (Smertnix.instance.featureManager.getFeature(Speed.class).isEnabled()) {
featureAlert("Speed");
if (disable.getCurrentValue()) {
Smertnix.instance.featureManager.getFeature(Speed.class).toggle();
}
} else if (Smertnix.instance.featureManager.getFeature(Spider.class).isEnabled() && Minecraft.player.isCollidedHorizontally) {
featureAlert("Spider");
if (disable.getCurrentValue())
Smertnix.instance.featureManager.getFeature(Spider.class).toggle();
} else if (Smertnix.instance.featureManager.getFeature(elytrafly.class).isEnabled()) {
featureAlert("ElytraLeaveSunrise");
if (disable.getCurrentValue()) {
Smertnix.instance.featureManager.getFeature(elytraleave.class).toggle();
}
} else if (Smertnix.instance.featureManager.getFeature(elytrafly.class).isEnabled() && Minecraft.player.isInLiquid()) {
featureAlert("ElytraFlySunrise");
if (disable.getCurrentValue()) {
Smertnix.instance.featureManager.getFeature(elytrafly.class).toggle();
}
} else if (Smertnix.instance.featureManager.getFeature(Timer.class).isEnabled()) {
featureAlert("Timer");
if (disable.getCurrentValue()) {
Smertnix.instance.featureManager.getFeature(Timer.class).toggle();
}
}
}
}
public void featureAlert(String feature) {
NotifRender.queue("Anti Flag Debug", "Module " + feature + " was flagged" + (Minecraft.player.isInWater() ? " on water" : "") + (Minecraft.player.isInLava() ? " in lava" : "") + "!", 3, NotifModern.SUCCESS);
}