aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-08 10:59:28 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-08 10:59:28 +0200
commit2e0fc53485bdb89d676c8ed43cfc453520259c37 (patch)
treeb1c977674bcc5487357e26c18bb6f5e5ca30167e /src/main/java/at
parentbd9b82fcd881277a102a01926058c380e205edba (diff)
downloadskyhanni-2e0fc53485bdb89d676c8ed43cfc453520259c37.tar.gz
skyhanni-2e0fc53485bdb89d676c8ed43cfc453520259c37.tar.bz2
skyhanni-2e0fc53485bdb89d676c8ed43cfc453520259c37.zip
restructured commands
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt51
1 files changed, 31 insertions, 20 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 1e22403ab..65390f4b2 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -39,38 +39,49 @@ object Commands {
}
fun init() {
+
+ // main commands
registerCommand("sh", openMainMenu)
registerCommand("skyhanni", openMainMenu)
- registerCommand("shreloadlocalrepo") { SkyHanniMod.repo.reloadLocalRepo() }
+
+ // for users - regular commands
+ registerCommand("shmarkplayer") { MarkedPlayerManager.command(it) }
+ registerCommand("shtrackcollection") { CollectionCounter.command(it) }
+ registerCommand("shsetapikey") { ApiDataLoader.command(it) }
+ registerCommand("shcropspeedmeter") { CropSpeedMeter.toggle() }
+ registerCommand("shcroptime") { GardenCropTimeCommand.onCommand(it) }
+ registerCommand("shshareinquis") { InquisitorWaypointShare.sendInquisitor() }
+
+ // for users - fix bugs
registerCommand("shupdaterepo") { SkyHanniMod.repo.updateRepo() }
+ registerCommand("shconfigsave") { SkyHanniMod.configManager.saveConfig("manual-command") }
+ registerCommand("shresetburrowwarps") { BurrowWarpHelper.resetDisabledWarps() }
+ registerCommand("shtogglehypixelapierrors") { APIUtil.toggleApiErrorMessages() }
+ registerCommand("shclearcropspeed") { GardenAPI.clearCropSpeed() }
+ registerCommand("shclearminiondata") { MinionFeatures.clearMinionData() }
+
+ // for developers - debug existing features
registerCommand("shtest") { SkyHanniTestCommand.testCommand(it) }
+ registerCommand("shtestbingo") { TestBingo.toggle() }
+ registerCommand("shprintbingohelper") { BingoNextStepHelper.command() }
+ registerCommand("shreloadbingodata") { BingoCardDisplay.command() }
+ registerCommand("shtestgardenvisitors") { SkyHanniTestCommand.testGardenVisitors() }
+ registerCommand("shtestcomposter") { ComposterOverlay.onCommand(it) }
+ registerCommand("shtestinquisitor") { InquisitorWaypointShare.test() }
+
+ // for developers - coding help
+ registerCommand("shreloadlocalrepo") { SkyHanniMod.repo.reloadLocalRepo() }
+ registerCommand("shstoplisteners") { SkyHanniTestCommand.stopListeners() }
+ registerCommand("shreloadlisteners") { SkyHanniTestCommand.reloadListeners() }
registerCommand("shcopylocation") { SkyHanniTestCommand.copyLocation() }
registerCommand("shcopyentities") { CopyNearbyEntitiesCommand.command(it) }
registerCommand("shcopytablist") { CopyTabListCommand.command(it) }
registerCommand("shcopyscoreboard") { CopyScoreboardCommand.command(it) }
registerCommand("shcopyitem") { CopyItemCommand.command(it) }
registerCommand("shcopyparticles") { CopyNearbyParticlesCommand.command(it) }
- registerCommand("shconfigsave") { SkyHanniMod.configManager.saveConfig("manual-command") }
- registerCommand("shmarkplayer") { MarkedPlayerManager.command(it) }
registerCommand("shtestpacket") { PacketTest.toggle() }
- registerCommand("shreloadlisteners") { SkyHanniTestCommand.reloadListeners() }
- registerCommand("shstoplisteners") { SkyHanniTestCommand.stopListeners() }
- registerCommand("shresetburrowwarps") { BurrowWarpHelper.resetDisabledWarps() }
- registerCommand("shtrackcollection") { CollectionCounter.command(it) }
- registerCommand("shreloadbingodata") { BingoCardDisplay.command() }
- registerCommand("shprintbingohelper") { BingoNextStepHelper.command() }
- registerCommand("shsetapikey") { ApiDataLoader.command(it) }
- registerCommand("shtestgardenvisitors") { SkyHanniTestCommand.testGardenVisitors() }
- registerCommand("shtogglehypixelapierrors") { APIUtil.toggleApiErrorMessages() }
- registerCommand("shcropspeedmeter") { CropSpeedMeter.toggle() }
- registerCommand("shcroptime") { GardenCropTimeCommand.onCommand(it) }
- registerCommand("shtestcomposter") { ComposterOverlay.onCommand(it) }
- registerCommand("shclearcropspeed") { GardenAPI.clearCropSpeed() }
- registerCommand("shclearminiondata") { MinionFeatures.clearMinionData() }
- registerCommand("shtestbingo") { TestBingo.toggle() }
registerCommand("shtestmessage") { TestChatCommand.command(it) }
- registerCommand("shshareinquis") { InquisitorWaypointShare.sendInquisitor() }
- registerCommand("shtestinquisitor") { InquisitorWaypointShare.test() }
+
}
private fun registerCommand(name: String, function: (Array<String>) -> Unit) {