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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user