Skip to content

Commit

Permalink
Added warp to party commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterCheezeCake committed Sep 8, 2024
1 parent a196958 commit e1ef5d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ public static PersistentData load() {
return new PersistentData();
}
}
// public DataImpl data = new DataImpl();
}
10 changes: 8 additions & 2 deletions src/main/java/wtf/cheeze/sbt/features/chat/PartyFeatures.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit e1ef5d0

Please sign in to comment.