1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

add response to config reload command

This commit is contained in:
2024-09-02 02:10:19 +03:00
parent b209893511
commit 9873747dfb
3 changed files with 7 additions and 1 deletions

View File

@@ -168,6 +168,10 @@ public final class SkinCommand {
private static int configReloadSubcommand(CommandContext<CommandSourceStack> context) {
SkinRestorer.reloadConfig();
context.getSource().sendSuccess(() -> Translation.translatableWithFallback(
Translation.COMMAND_SKIN_CONFIG_RELOADED_KEY
), true);
return 0;
}

View File

@@ -19,6 +19,7 @@ public final class Translation {
public static final String COMMAND_SKIN_FAILED_KEY = "skinrestorer.command.skin.failed";
public static final String COMMAND_SKIN_OK_KEY = "skinrestorer.command.skin.ok";
public static final String COMMAND_SKIN_LOADING_KEY = "skinrestorer.command.skin.loading";
public static final String COMMAND_SKIN_CONFIG_RELOADED_KEY = "skinrestorer.command.skin.config_reloaded";
private static Map<String, String> translations;
private static final Map<String, String> fallback;

View File

@@ -3,5 +3,6 @@
"skinrestorer.command.skin.no_changes": "No skin changes",
"skinrestorer.command.skin.failed": "Failed to change skin: %s",
"skinrestorer.command.skin.ok": "Skin changed",
"skinrestorer.command.skin.loading": "Loading skin..."
"skinrestorer.command.skin.loading": "Loading skin...",
"skinrestorer.command.skin.config_reloaded": "Config has been reloaded"
}