From 3ad2bda69a6ce852e8d1d862c6afcbfd5bfcf6f3 Mon Sep 17 00:00:00 2001 From: SeRaid <77941535+SeRaid743@users.noreply.github.com> Date: Wed, 24 Apr 2024 19:54:22 +1200 Subject: Command wording update (#1524) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 4 ++-- .../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") -- cgit