diff options
author | SeRaid <77941535+SeRaid743@users.noreply.github.com> | 2024-04-24 19:54:22 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 09:54:22 +0200 |
commit | 3ad2bda69a6ce852e8d1d862c6afcbfd5bfcf6f3 (patch) | |
tree | c258daa45594eae155de6487b53950084a746c6f /src | |
parent | c6b6f1fd9377896df0d17f1951cb84c2a1ffd24a (diff) | |
download | skyhanni-3ad2bda69a6ce852e8d1d862c6afcbfd5bfcf6f3.tar.gz skyhanni-3ad2bda69a6ce852e8d1d862c6afcbfd5bfcf6f3.tar.bz2 skyhanni-3ad2bda69a6ce852e8d1d862c6afcbfd5bfcf6f3.zip |
Command wording update (#1524)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 8 |
2 files changed, 5 insertions, 7 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 7f4475287..e4a09e54e 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -469,9 +469,9 @@ object Commands { "Display a title on the screen with the specified settings." ) { TitleManager.command(it) } registerCommand( - "shconfigmanagerreset", + "shresetconfig", "Reloads the config manager and rendering processors of MoulConfig. This §cWILL RESET §7your config, but also updating the java config files (names, description, orderings and stuff)." - ) { SkyHanniDebugsAndTests.configManagerResetCommand() } + ) { SkyHanniDebugsAndTests.resetConfigCommand() } registerCommand( "readcropmilestonefromclipboard", "Read crop milestone from clipboard. This helps fixing wrong crop milestone data" diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 0d820f09a..7e9427996 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -190,19 +190,17 @@ class SkyHanniDebugsAndTests { } } - fun configManagerResetCommand() { + fun resetConfigCommand() { ChatUtils.clickableChat( "§cTHIS WILL RESET YOUR SkyHanni CONFIG! Click here to procceed.", onClick = { - configManagerReset() + resetConfig() }, prefix = false ) } - private fun configManagerReset() { - // TODO make it so that it does not reset the config - + private fun resetConfig() { // saving old config state SkyHanniMod.configManager.saveConfig(ConfigFileType.FEATURES, "reload config manager") SkyHanniMod.configManager.saveConfig(ConfigFileType.SACKS, "reload config manager") |