diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-10-23 02:59:36 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 17:59:36 +0200 |
commit | 952b6afe61c374a20f0f417258f0f5d5f1110e55 (patch) | |
tree | 9a457c70107bebe02037c5be03f422852a2e8680 /src/main/java/at/hannibal2/skyhanni/config/commands | |
parent | 0e981c3cc50bfae6dd6cf4bab0cc7e983f6a2743 (diff) | |
download | skyhanni-952b6afe61c374a20f0f417258f0f5d5f1110e55.tar.gz skyhanni-952b6afe61c374a20f0f417258f0f5d5f1110e55.tar.bz2 skyhanni-952b6afe61c374a20f0f417258f0f5d5f1110e55.zip |
Feature: Add Party Commands (#584)
Added shortcuts for Party commands and smart tab complete.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 439e6cd0f..9c8894967 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -8,6 +8,7 @@ import at.hannibal2.skyhanni.data.PartyAPI import at.hannibal2.skyhanni.features.bingo.BingoCardDisplay import at.hannibal2.skyhanni.features.bingo.BingoNextStepHelper import at.hannibal2.skyhanni.features.combat.ghostcounter.GhostUtil +import at.hannibal2.skyhanni.features.commands.PartyCommands import at.hannibal2.skyhanni.features.event.diana.BurrowWarpHelper import at.hannibal2.skyhanni.features.event.diana.InquisitorWaypointShare import at.hannibal2.skyhanni.features.fame.AccountUpgradeReminder @@ -83,7 +84,7 @@ object Commands { "A Command that is useful for monitoring/debugging existing features. §cIntended for developers only!" ), INTERNAL("§8", "Internal Command", "A Command that should §cnever §7be called manually!"), - + SHORTENED_COMMANDS("§b", "Shortened Commands", "Commands that shorten or improve existing Hypixel commands!") } class CommandInfo(val name: String, val description: String, val category: CommandCategory) @@ -108,6 +109,9 @@ object Commands { currentCategory = CommandCategory.INTERNAL internalCommands() + + currentCategory = CommandCategory.SHORTENED_COMMANDS + shortenedCommands() } private fun usersMain() { @@ -294,6 +298,14 @@ object Commands { // ) { Translator.toEnglish(it) } } + private fun shortenedCommands() { + registerCommand("pko", "Kicks offline party members") { PartyCommands.kickOffline() } + registerCommand("pw", "Warps your party") { PartyCommands.warp() } + registerCommand("pk", "Kick a specific party member") { PartyCommands.kick(it) } + registerCommand("pt", "Transfer the party to another party member") { PartyCommands.transfer(it) } + registerCommand("pp", "Promote a specific party member") { PartyCommands.promote(it) } + } + private fun commandHelp(args: Array<String>) { var filter: (String) -> Boolean = { true } val title: String |