diff options
author | Appability <appable@icloud.com> | 2022-11-13 03:22:13 -0800 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-11-13 03:22:13 -0800 |
commit | 766ce61c5655935a232c5d87c1e334c6fba3d73b (patch) | |
tree | d95e94774becceb59b9398c5eedbe2008ba0a165 | |
parent | a4aac041f9fb4d47203f4fd10dddcebe91abc750 (diff) | |
download | AmbientAddons-766ce61c5655935a232c5d87c1e334c6fba3d73b.tar.gz AmbientAddons-766ce61c5655935a232c5d87c1e334c6fba3d73b.tar.bz2 AmbientAddons-766ce61c5655935a232c5d87c1e334c6fba3d73b.zip |
add move command
and additional help in main settings gui and help chat message (to show aliases)
-rw-r--r-- | src/main/kotlin/com/ambientaddons/commands/AmbientCommand.kt | 8 | ||||
-rw-r--r-- | src/main/kotlin/com/ambientaddons/config/Config.kt | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/main/kotlin/com/ambientaddons/commands/AmbientCommand.kt b/src/main/kotlin/com/ambientaddons/commands/AmbientCommand.kt index ca5631c..17bc2e8 100644 --- a/src/main/kotlin/com/ambientaddons/commands/AmbientCommand.kt +++ b/src/main/kotlin/com/ambientaddons/commands/AmbientCommand.kt @@ -3,6 +3,7 @@ package com.ambientaddons.commands import AmbientAddons import AmbientAddons.Companion.mc import com.ambientaddons.config.Config +import com.ambientaddons.gui.MoveGui import com.ambientaddons.utils.Chat import com.ambientaddons.utils.Extensions.withModPrefix import com.ambientaddons.utils.SBLocation @@ -25,6 +26,8 @@ class AmbientCommand : CommandBase() { "location" -> UChat.chat(SBLocation.toString().withModPrefix()) "buy" -> AutoBuyCommand.processCommand(args.drop(1)) "salvage" -> SalvageCommand.processCommand(args.drop(1)) + "move" -> AmbientAddons.currentGui = MoveGui() + else -> { UChat.chat(""" ${Chat.getChatBreak()} @@ -32,6 +35,11 @@ class AmbientCommand : CommandBase() { §a/ambient §eto access GUI settings. §a/ambient buy §eto edit autobuy list. §a/ambient salvage §eto configure salvage features. + §a/ambient move §eto move display elements. + + §b§lAliases: + §a/aa + §a/ambientaddons ${Chat.getChatBreak()} """.trimIndent()) } diff --git a/src/main/kotlin/com/ambientaddons/config/Config.kt b/src/main/kotlin/com/ambientaddons/config/Config.kt index 9f25914..ccf4909 100644 --- a/src/main/kotlin/com/ambientaddons/config/Config.kt +++ b/src/main/kotlin/com/ambientaddons/config/Config.kt @@ -68,7 +68,7 @@ object Config : Vigilant( selector( ::salvageMode, name = "Salvaging features", - description = "Various modes to improve salvaging.", + description = "Various modes to improve salvaging. §c/ambient salvage §7to configure.", options = listOf("Off", "Highlight", "Block misclicks", "Legit autosalvage", "Unlegit autosalvage") ) switch( @@ -192,7 +192,7 @@ object Config : Vigilant( selector( ::autoBuyChest, name = "Dungeon Reward Chests", - description = "Either blocks rerolls or automatically buys dungeon reward chests containing certain items.", + description = "Either blocks rerolls or automatically buys dungeon reward chests containing certain items. §c/ambient buy §7to configure.", options = listOf("Off", "Block Reroll", "Autobuy") ) } @@ -219,7 +219,7 @@ object Config : Vigilant( category("Displays") { button( name = "Move GUI elements", - description = "Opens a GUI to edit locations of all GUI elements.", + description = "Opens a GUI to edit locations of all GUI elements. §c/ambient move §7to access anywhere.", ) { currentGui = MoveGui() } |