From 5f64a62d8038d6e715ea149e01446a58dc279155 Mon Sep 17 00:00:00 2001 From: Bella Date: Thu, 19 Dec 2019 21:02:56 -0500 Subject: [PATCH] add warning to antichunkban --- .../module/modules/bewwawho/misc/AntiChunkBan.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/AntiChunkBan.java b/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/AntiChunkBan.java index 4057063e..f5d50aee 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/AntiChunkBan.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/AntiChunkBan.java @@ -2,6 +2,7 @@ package me.zeroeightsix.kami.module.modules.bewwawho.misc; import me.zero.alpine.listener.EventHandler; import me.zero.alpine.listener.Listener; +import me.zeroeightsix.kami.command.Command; import me.zeroeightsix.kami.event.events.PacketEvent; import me.zeroeightsix.kami.module.Module; import me.zeroeightsix.kami.setting.Setting; @@ -10,30 +11,35 @@ import net.minecraft.client.Minecraft; import net.minecraft.network.play.client.CPacketChatMessage; import net.minecraft.network.play.server.SPacketChunkData; -@Module.Info(name = "AntiChunkBan", description = "Spams /kill, gets out of ban chunks.", category = Module.Category.MISC) - /*** * Kill mode * @author Fums * @coauthor S-B99 - * Updated by S-B99 on 01/12/19 + * Updated by S-B99 on 19/12/19 */ /*** * Packet mode * @author cats * Updated by cats on 02/12/19 */ +@Module.Info(name = "AntiChunkBan", description = "Spams /kill, gets out of ban chunks.", category = Module.Category.MISC) public class AntiChunkBan extends Module { private static long startTime = 0; private Setting modeThing = register(Settings.e("Mode", ModeThing.PACKET)); private Setting delayTime = register(Settings.f("Kill Delay", 10)); private Setting disable = register(Settings.b("Disable After Kill", false)); + private Setting warn = register(Settings.b("Warning", true)); private enum ModeThing { PACKET, KILL, BOTH } + public void onEnable() { + if (mc.player == null) return; + Command.sendChatMessage("[AntiChunkBan] Note: this disables chunks loading in. If you want to be able to play normally you have to disable it"); + } + @Override public void onUpdate() { if (mc.player == null) return;