summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/commands
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-06-19 10:41:45 +0200
committerGitHub <noreply@github.com>2023-06-19 10:41:45 +0200
commit81e6801b2507cbb10ede6fba4f1d9ee6ef92f219 (patch)
treec7e54ab3c5b8bde2951b6ca35286ff2d39e8635b /src/main/java/at/hannibal2/skyhanni/config/commands
parentb09c4e4a38db21c1a83501b41d77c48d3b08d59b (diff)
downloadskyhanni-81e6801b2507cbb10ede6fba4f1d9ee6ef92f219.tar.gz
skyhanni-81e6801b2507cbb10ede6fba4f1d9ee6ef92f219.tar.bz2
skyhanni-81e6801b2507cbb10ede6fba4f1d9ee6ef92f219.zip
Ghost Counter (#227)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt15
1 files changed, 9 insertions, 6 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 d49ddf345..ebcb72d28 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -20,6 +20,7 @@ import at.hannibal2.skyhanni.features.garden.fortuneguide.FFGuideGUI
import at.hannibal2.skyhanni.features.minion.MinionFeatures
import at.hannibal2.skyhanni.features.misc.CityProjectFeatures
import at.hannibal2.skyhanni.features.misc.CollectionCounter
+import at.hannibal2.skyhanni.features.misc.GhostCounter
import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager
import at.hannibal2.skyhanni.features.misc.discordrpc.DiscordRPCManager
import at.hannibal2.skyhanni.features.slayer.SlayerItemProfitTracker
@@ -51,7 +52,7 @@ object Commands {
// main commands
registerCommand("sh", openMainMenu)
registerCommand("skyhanni", openMainMenu)
-
+
registerCommand("ff") { openFortuneGuide() }
// for users - regular commands
@@ -65,6 +66,7 @@ object Commands {
registerCommand("shcropstartlocation") { GardenStartLocation.setLocationCommand() }
registerCommand("shstopcityprojectreminder") { CityProjectFeatures.disable() }
registerCommand("shclearslayerprofits") { SlayerItemProfitTracker.clearProfitCommand(it) }
+ registerCommand("shimportghostcounterdata") { GhostCounter.importCTGhostCounterData() }
registerCommand("shclearfarmingitems") { clearFarmingItems() }
// for users - fix bugs
@@ -100,8 +102,9 @@ object Commands {
registerCommand("shcopyerror") { CopyErrorCommand.command(it) }
}
+
@JvmStatic
- fun openFortuneGuide() {
+ fun openFortuneGuide() {
if (!LorenzUtils.inSkyBlock) {
LorenzUtils.chat("§cJoin Skyblock to open the fortune guide!")
} else {
@@ -122,9 +125,9 @@ object Commands {
}
private fun createCommand(function: (Array<String>) -> Unit) =
- object : ProcessCommandRunnable() {
- override fun processCommand(sender: ICommandSender?, args: Array<out String>) {
- function(args.asList().toTypedArray())
+ object : ProcessCommandRunnable() {
+ override fun processCommand(sender: ICommandSender?, args: Array<out String>) {
+ function(args.asList().toTypedArray())
+ }
}
- }
} \ No newline at end of file