From 2276234dd0fd367f56f9e63bdf14884e1336a600 Mon Sep 17 00:00:00 2001 From: Bella Who Date: Wed, 22 Jan 2020 21:36:48 -0500 Subject: [PATCH 1/2] close #403 --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e9eb3c12..d21af92c 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,8 @@ See [forgehax](https://github.com/fr1kin/forgehax) for an equivalent. Some featu -## How to download - -Press the releases button or [click here](https://github.com/S-B99/KAMI/releases) + + ## Status From dda09c5386d76a2d5a49fcfd74ba2e748d925de7 Mon Sep 17 00:00:00 2001 From: Bella Who Date: Thu, 23 Jan 2020 00:06:59 -0500 Subject: [PATCH 2/2] Delete PearlDupe.java --- .../modules/bewwawho/misc/PearlDupe.java | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/PearlDupe.java diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/PearlDupe.java b/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/PearlDupe.java deleted file mode 100644 index 24600d47..00000000 --- a/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/PearlDupe.java +++ /dev/null @@ -1,51 +0,0 @@ -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; -import me.zeroeightsix.kami.setting.Settings; -import net.minecraft.client.Minecraft; -import net.minecraft.network.play.client.CPacketChatMessage; -import net.minecraft.network.play.client.CPacketConfirmTeleport; - -@Module.Info(name = "PearlDupe", description = "Duplicates your inventory", category = Module.Category.MISC) -public class PearlDupe extends Module { - - private Setting info = register(Settings.b("Info", true)); - private Setting warn = register(Settings.b("Warning", true)); - private Setting singleplayer = register(Settings.b("SinglePlayer Disable", true)); - private Setting disable = register(Settings.b("Disable on death", true)); - - public void onEnable() { - if (mc.player == null) return; - if (Minecraft.getMinecraft().getCurrentServerData() == null) { - Command.sendErrorMessage("[PearlDupe] Error: &r&4This doesn't work in singleplayer"); - if (singleplayer.getValue()) { - this.disable(); - } - return; - } - if (info.getValue()) { - Command.sendChatMessage("[PearlDupe] Instructions: throw a pearl, it /kills on teleport "); - Command.sendChatMessage("[PearlDupe] This doesn't always work, and it doesn't work for 2b2t and 9b9t"); - } - if (warn.getValue()) { - Command.sendWarningMessage("[PearlDupe] Warning is still on, please disable the option once you've read the instructions"); - this.disable(); - } - } - - @EventHandler - Listener receiveListener = new Listener<>(event -> { - if (event.getPacket() instanceof CPacketConfirmTeleport) { -// if (mc.player == null) return; - Minecraft.getMinecraft().playerController.connection.sendPacket(new CPacketChatMessage("/kill")); - if (disable.getValue()) { - this.disable(); - } - } - }); -}