aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/commands
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-01-20 20:01:45 +1100
committerGitHub <noreply@github.com>2024-01-20 10:01:45 +0100
commitcae50abbda2f5e2e53e81231b9f3a01215b0871e (patch)
treec14bbbc254044234ff839ce70ff4a7c630ce3a03 /src/main/java/at/hannibal2/skyhanni/config/commands
parentba50ceb84f6992a4150b0f3afd6aad163dc2137f (diff)
downloadskyhanni-cae50abbda2f5e2e53e81231b9f3a01215b0871e.tar.gz
skyhanni-cae50abbda2f5e2e53e81231b9f3a01215b0871e.tar.bz2
skyhanni-cae50abbda2f5e2e53e81231b9f3a01215b0871e.zip
add crop milestone commands (#869)
Added /shcalccrop and /shcalccroptime #869
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt7
1 files changed, 7 insertions, 0 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 bb05b8aee..d6f3d2fbd 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -24,6 +24,7 @@ import at.hannibal2.skyhanni.features.fame.AccountUpgradeReminder
import at.hannibal2.skyhanni.features.fame.CityProjectFeatures
import at.hannibal2.skyhanni.features.fishing.tracker.FishingProfitTracker
import at.hannibal2.skyhanni.features.fishing.tracker.SeaCreatureTracker
+import at.hannibal2.skyhanni.features.garden.FarmingMilestoneCommand
import at.hannibal2.skyhanni.features.garden.GardenAPI
import at.hannibal2.skyhanni.features.garden.GardenCropTimeCommand
import at.hannibal2.skyhanni.features.garden.GardenCropsInCommand
@@ -230,6 +231,12 @@ object Commands {
"shresetseacreaturetracker",
"Resets the Sea Creature Tracker"
) { SeaCreatureTracker.resetCommand(it) }
+ registerCommand0("shcalccrop", "Calculate how many crops need to be farmed between different crop milestones.", {
+ FarmingMilestoneCommand.onCommand(it.getOrNull(0), it.getOrNull(1), it.getOrNull(2), false)
+ }, FarmingMilestoneCommand::onComplete)
+ registerCommand0("shcalccroptime", "Calculate how long you need to farm crops between different crop milestones.", {
+ FarmingMilestoneCommand.onCommand(it.getOrNull(0), it.getOrNull(1), it.getOrNull(2), true)
+ }, FarmingMilestoneCommand::onComplete)
}
private fun usersBugFix() {