Skip to content

Commit b285bff

Browse files
committed
Directly restart local translation server
1 parent 96ea174 commit b285bff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/main/kotlin/xyz/bluspring/unitytranslate/commands/UnityTranslateCommands.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ object UnityTranslateCommands {
3232
1
3333
}
3434

35-
val DEBUG_RESTART_TIMER = Commands.literal("debugreload")
35+
val DEBUG_RESTART = Commands.literal("debugreload")
3636
.executes { ctx ->
37-
TranslatorManager.loadFromConfig()
37+
TranslatorManager.installLibreTranslate()
3838
ctx.source.sendSystemMessage(Component.literal("Restarted timer!"))
3939

4040
1
@@ -44,5 +44,5 @@ object UnityTranslateCommands {
4444
.requires { it.hasPermission(3) }
4545
.then(INFO)
4646
.then(CLEAR_QUEUE)
47-
.then(DEBUG_RESTART_TIMER)
47+
.then(DEBUG_RESTART)
4848
}

0 commit comments

Comments
 (0)