mirror of
https://github.com/System-End/Discord-MC-Chat.git
synced 2026-04-19 23:22:49 +00:00
优化日志
This commit is contained in:
parent
f2a3329895
commit
f325e22f0a
2 changed files with 8 additions and 5 deletions
|
|
@ -71,9 +71,9 @@ public class DMCC {
|
|||
}
|
||||
|
||||
if (IS_MINECRAFT_ENV) {
|
||||
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_minecraft_env", VERSION));
|
||||
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_minecraft_env"));
|
||||
} else {
|
||||
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_standalone_env", VERSION));
|
||||
LOGGER.info(I18nManager.getDmccTranslation("main.init.info_standalone_env"));
|
||||
}
|
||||
|
||||
// If configuration fails to load, exit the DMCC-Init thread gracefully
|
||||
|
|
@ -90,9 +90,9 @@ public class DMCC {
|
|||
|
||||
if (configs) {
|
||||
if (IS_MINECRAFT_ENV) {
|
||||
LOGGER.warn(I18nManager.getDmccTranslation("main.init.reload_prompt"));
|
||||
LOGGER.warn(I18nManager.getDmccTranslation("main.init.minecraft_reload_prompt"));
|
||||
} else {
|
||||
LOGGER.warn(I18nManager.getDmccTranslation("main.init.restart_prompt"));
|
||||
LOGGER.warn(I18nManager.getDmccTranslation("main.init.standalone_reload_prompt"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,9 @@ public class I18nManager {
|
|||
// For client-only mode, we only need DMCC translations for logs and basic messages.
|
||||
if (!"multi_server_client".equals(ModeManager.getMode())) {
|
||||
// For server-enabled modes, load the full I18n suite.
|
||||
return loadCustomMessages();
|
||||
if (!loadCustomMessages()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Load official Minecraft translations, from cache or by downloading
|
||||
// if (!loadMinecraftTranslations()) {
|
||||
|
|
@ -81,6 +83,7 @@ public class I18nManager {
|
|||
// }
|
||||
}
|
||||
|
||||
LOGGER.info(I18nManager.getDmccTranslation("utils.i18n.fully_loaded"));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue