From e1ef5d02da5b61e792c1d28939d3abc025eb3190 Mon Sep 17 00:00:00 2001 From: MisterCheezeCake <75341435+MisterCheezeCake@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:08:33 -0400 Subject: [PATCH] Added warp to party commands --- .../cheeze/sbt/config/persistent/PersistentData.java | 1 - .../wtf/cheeze/sbt/features/chat/PartyFeatures.java | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/wtf/cheeze/sbt/config/persistent/PersistentData.java b/src/main/java/wtf/cheeze/sbt/config/persistent/PersistentData.java index 3772452..f9e5a82 100644 --- a/src/main/java/wtf/cheeze/sbt/config/persistent/PersistentData.java +++ b/src/main/java/wtf/cheeze/sbt/config/persistent/PersistentData.java @@ -47,5 +47,4 @@ public static PersistentData load() { return new PersistentData(); } } -// public DataImpl data = new DataImpl(); } diff --git a/src/main/java/wtf/cheeze/sbt/features/chat/PartyFeatures.java b/src/main/java/wtf/cheeze/sbt/features/chat/PartyFeatures.java index c8e8f14..290f4a5 100644 --- a/src/main/java/wtf/cheeze/sbt/features/chat/PartyFeatures.java +++ b/src/main/java/wtf/cheeze/sbt/features/chat/PartyFeatures.java @@ -78,13 +78,19 @@ public static void registerEvents() { } SkyblockTweaks.mc.getNetworkHandler().sendChatCommand("p settings allinvite"); } + case "warp" -> { + if (!SkyblockTweaks.DATA.amITheLeader) { + return; + } + SkyblockTweaks.mc.getNetworkHandler().sendChatCommand("p warp"); + } case "help" -> { SkyblockTweaks.LOGGER.info(name); if ((name.equals(SkyblockTweaks.mc.player.getName().getString()))) { - SkyblockTweaks.mc.player.sendMessage(Text.of("§7[§aSkyblockTweaks§f§7] §fAvailable party commands: !ptme, !allinvite, !help"), false); + SkyblockTweaks.mc.player.sendMessage(Text.of("§7[§aSkyblockTweaks§f§7] §fAvailable party commands: !ptme, !allinvite, !warp, !help"), false); return; } - SkyblockTweaks.mc.getNetworkHandler().sendChatCommand("pc [SkyblockTweaks] Available party commands: !ptme, !allinvite, !help"); + SkyblockTweaks.mc.getNetworkHandler().sendChatCommand("pc [SkyblockTweaks] Available party commands: !ptme, !allinvite, !warp, !help"); } } } else if (s.startsWith("The party was transferred to")) {