From 24f16f45d67690ccb747a483fdab190d8a545268 Mon Sep 17 00:00:00 2001 From: Shizoukia Date: Fri, 6 Sep 2024 07:34:26 +0800 Subject: [PATCH 1/2] add Chinese --- .../lang/locales/SChineseRepresentor.java | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java diff --git a/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java b/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java new file mode 100644 index 0000000..8f33578 --- /dev/null +++ b/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java @@ -0,0 +1,94 @@ +package me.alek.serversecurity.lang.locales; + +import me.alek.serversecurity.ServerSecurityPlugin; +import me.alek.serversecurity.lang.Lang; +import me.alek.serversecurity.lang.LocaleMessageRepresentor; + +public enum SChineseRepresentor implements LocaleMessageRepresentor { + + COMMAND_NO_PERMISSION(Lang.COMMAND_NO_PERMISSION, "You do not have permission to use this command!"), + COMMAND_NO_CONSOLE(Lang.COMMAND_NO_CONSOLE, "§cThis command can only be used by players."), + COMMAND_HELP_HEADER(Lang.COMMAND_HELP_HEADER, + "§6" + ServerSecurityPlugin.get().getDescription().getFullName() + ". Made by Alek05."), + COMMAND_HELP_FOOTER(Lang.COMMAND_HELP_FOOTER, + "§7Type §e/am help §7for help on command usage."), + + SUBCOMMAND_CLEAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_CLEAN_INFO_DESCRIPTION, "Cleans OS or plugins from Skyrage."), + SUBCOMMAND_CLEAN_SPECIFICATION(Lang.SUBCOMMAND_CLEAN_SPECIFICATION, "§cYou need to specify, what you would like to clean. Use /am cleanskyrage ."), + SUBCOMMAND_CLEAN_CLEANING(Lang.SUBCOMMAND_CLEAN_CLEANING, "§7Cleaning the OS of the server from Skyrage Malware..."), + SUBCOMMAND_CLEAN_OS_NOT_INFECTED(Lang.SUBCOMMAND_CLEAN_OS_NOT_INFECTED, "§aIt looks like the OS of the server is not infected by Skyrage Malware."), + SUBCOMMAND_CLEAN_PLUGINS_NOT_INFECTED(Lang.SUBCOMMAND_CLEAN_PLUGINS_NOT_INFECTED, "§aIt looks like there isn't any plugin infected by Skyrage Malware."), + SUBCOMMAND_CLEAN_PLUGINS_CLEANING(Lang.SUBCOMMAND_CLEAN_PLUGINS_CLEANING, "§aRemoving Skyrage Malware from file %s..."), + SUBCOMMAND_CLEAN_PLUGINS_TOTAL_CLEANED(Lang.SUBCOMMAND_CLEAN_PLUGINS_TOTAL_CLEANED, "§aRemoved Skyrage Malware from %s files."), + + SUBCOMMAND_LANGUAGE_INFO_DESCRIPTION(Lang.SUBCOMMAND_LANGUAGE_INFO_DESCRIPTION, "Change the language of the plugin."), + SUBCOMMAND_LANGUAGE_ERROR_NO_SUCH_LANGUAGE(Lang.SUBCOMMAND_LANGUAGE_ERROR_NO_SUCH_LANGUAGE, "§cNo language was found by that string."), + SUBCOMMAND_LANGUAGE_ERROR_BAD_CONFIG(Lang.SUBCOMMAND_LANGUAGE_ERROR_BAD_CONFIG, "§cYou may have a old config or typed something badly in it. Remove it, restart the server and try again."), + SUBCOMMAND_LANGUAGE_ERROR_SPECIFICATION(Lang.SUBCOMMAND_LANGUAGE_ERROR_SPECIFICATION, "§cYou have to chose a language."), + SUBCOMMAND_LANGUAGE_CHANGED(Lang.SUBCOMMAND_LANGUAGE_CHANGED, "§aThe language is now changed to english."), + + SUBCOMMAND_DEEPSCAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_DEEPSCAN_INFO_DESCRIPTION, "Detailed scan of files with virus and backdoors."), + SUBCOMMAND_SIMPLESCAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_SIMPLESCAN_INFO_DESCRIPTION, "Simple scan of files with virus and backdoors."), + SUBCOMMAND_HELP_INFO_DESCRIPTION(Lang.SUBCOMMAND_HELP_INFO_DESCRIPTION, "Sends all the commands you can use."), + SUBCOMMAND_RELOAD_INFO_DESCRIPTION(Lang.SUBCOMMAND_RELOAD_INFO_DESCRIPTION, "Reloads file cache and configuration."), + SUBCOMMAND_RELOAD_RELOADING(Lang.SUBCOMMAND_RELOAD_RELOADING, "§7Reloading file cache and configuration..."), + + SCANNING_ERROR_NO_AVAILABLE_SCANNER(Lang.SCANNING_ERROR_NO_AVAILABLE_SCANNER, "§cThere encountered an error. Try waiting some time."), + SCANNING_ERROR_NO_SUCH_PLUGIN(Lang.SCANNING_ERROR_NO_SUCH_PLUGIN, "§cCouldn't find any plugin that match."), + SCANNING_ERROR_ALREADY_SCANNING(Lang.SCANNING_ERROR_ALREADY_SCANNING, "§cThe server is already caching scannings. Wait some time... (%s/%s)"), + SCANNING_ERROR_NO_RESULT(Lang.SCANNING_ERROR_NO_RESULT, "§cThere wasn't found any data from the scan."), + SCANNING_ERROR_UNKNOWN(Lang.SCANNING_ERROR_UNKNOWN, "§cThere encountered an error. Try waiting some time."), + SCANNING_WARN_MANY_INFECTED(Lang.SCANNING_WARN_MANY_INFECTED, "§cIt looks like, that the server has a lot of files infected. " + + "This could be due to one plugin infecting all of the other ones. You would have to install all of them again, and " + + "ServerSecurity as well."), + SCANNING_STARTING(Lang.SCANNING_STARTING, "§7Scanning %s files for malware and backdoors..."), + SCANNING_DONE_CHAT(Lang.SCANNING_DONE_CHAT, "§7Done scanning %s files and found %s with malware or backdoor."), + SCANNING_DONE_LOG(Lang.SCANNING_DONE_LOG, "Done scanning %s files and found %s with malware or backdoor."), + SCANNING_WARN_INFECTED_JOIN(Lang.SCANNING_WARN_INFECTED_JOIN, "§cThere has been found malware in a plugin. Use /am scan for more information."), + SCANNING_RESULT_GREEN(Lang.SCANNING_RESULT_GREEN, "§aThis plugin is not infected."), + SCANNING_RESULT_YELLOW(Lang.SCANNING_RESULT_YELLOW, "§eThis plugin is most likely not infected."), + SCANNING_RESULT_RED(Lang.SCANNING_RESULT_RED, "§cThis plugin is might infected."), + SCANNING_RESULT_MALWARE(Lang.SCANNING_RESULT_MALWARE, "§4This plugin is infected! Remove it immediately!"), + SCANNING_RESULT_REPLACER(Lang.SCANNING_RESULT_REPLACER, "This plugin"), + + CLEANING_ERROR_PROCESS_RESERVED(Lang.CLEANING_ERROR_PROCESS_RESERVED, "§cThe file is reserved by a different proces and can therefore not be modified."), + CLEANING_WINDOWS_ERROR_NO_WRITE_PERMISSION(Lang.CLEANING_WINDOWS_ERROR_NO_WRITE_PERMISSION, "§cThe server is still infected! You have to give access to modify files."), + CLEANING_WINDOWS_ERROR_TASK_KILL(Lang.CLEANING_WINDOWS_ERROR_TASK_KILL, "§cThe server is still infected! There encountered an error when trying to kill the process."), + CLEANING_LINUX_ERROR_ABORTED(Lang.CLEANING_LINUX_ERROR_ABORTED, "§cThe server is still infected! The cleaning was aborted by some other thread or process."), + CLEANING_LINUX_ERROR_NO_WRITE_PERMISSION(Lang.CLEANING_LINUX_ERROR_NO_WRITE_PERMISSION, "§cThe server is still infected! You have to give access to modify files."), + + NETWORK_ERROR_ACTIVATING_INTERCEPTOR(Lang.NETWORK_ERROR_ACTIVATING_INTERCEPTOR, "§cThere encountered an error when activating the network interceptor."), + NETWORK_ERROR_REPLACE_SECURITY_MANAGER(Lang.NETWORK_ERROR_REPLACE_SECURITY_MANAGER, "§cThere encountered an error when deactivating the network interceptor."), + NETWORK_BLOCKED(Lang.NETWORK_BLOCKED, "Blocked protocol from address: %s"), + + SECURITY_BLOCKED_COMMAND(Lang.SECURITY_BLOCKED_COMMAND, "Blocked console command: %s"), + SECURITY_BLOCKED_OPERATOR_CHANGE(Lang.SECURITY_BLOCKED_OPERATOR_CHANGE, "Blocked operator shift: %s -> %s (%s)"), + SECURITY_BLOCKED_BACKDOOR_CHAT(Lang.SECURITY_BLOCKED_BACKDOOR_CHAT, "§cPossible backdoor was found! Used by: %s"), + SECURITY_BLOCKED_BACKDOOR_KICK(Lang.SECURITY_BLOCKED_BACKDOOR_KICK, "§cPossible backdoor was found! Contact a member of the staff team, if this is a mistake."), + SECURITY_OPPROXY_BLOCKED_LOG(Lang.SECURITY_OPPROXY_BLOCKED_LOG, "Operator of player was denied: %s"), + SECURITY_OPPROXY_BLOCKED_INFO(Lang.SECURITY_OPPROXY_BLOCKED_INFO, "§cOperator of player was denied: %s. If the player " + + "should be an operator, you can give the player access in config.yml"), + SECURITY_OPPROXY_LOG_OP(Lang.SECURITY_OPPROXY_LOG_OP, "Player is now op: %s"), + SECURITY_OPPROXY_LOG_DEOP(Lang.SECURITY_OPPROXY_LOG_DEOP, "Player is now deop: %s"), + + UPDATE_FOUND(Lang.UPDATE_FOUND, "§7Found an update: v%s. Download:") + ; + + private final Lang lang; + private final String[] messages; + + SChineseRepresentor(Lang lang, String... messages) { + this.lang = lang; + this.messages = messages; + } + + @Override + public Lang getLang() { + return lang; + } + + @Override + public String[] getMessages() { + return messages; + } +} From 30eb1e19035f4f4fe2b11c17af9f39110b231cdb Mon Sep 17 00:00:00 2001 From: Shizoukia Date: Fri, 6 Sep 2024 07:36:04 +0800 Subject: [PATCH 2/2] add Chinese --- .../lang/locales/SChineseRepresentor.java | 127 +++++++++--------- 1 file changed, 63 insertions(+), 64 deletions(-) diff --git a/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java b/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java index 8f33578..ed2136a 100644 --- a/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java +++ b/src/main/java/me/alek/serversecurity/lang/locales/SChineseRepresentor.java @@ -6,72 +6,71 @@ public enum SChineseRepresentor implements LocaleMessageRepresentor { - COMMAND_NO_PERMISSION(Lang.COMMAND_NO_PERMISSION, "You do not have permission to use this command!"), - COMMAND_NO_CONSOLE(Lang.COMMAND_NO_CONSOLE, "§cThis command can only be used by players."), + + COMMAND_NO_PERMISSION(Lang.COMMAND_NO_PERMISSION, "你没有权限使用此指令!"), + COMMAND_NO_CONSOLE(Lang.COMMAND_NO_CONSOLE, "§c此指令只能由玩家执行。"), COMMAND_HELP_HEADER(Lang.COMMAND_HELP_HEADER, - "§6" + ServerSecurityPlugin.get().getDescription().getFullName() + ". Made by Alek05."), + "§6" + ServerSecurityPlugin.get().getDescription().getFullName() + "。由 Alek05 制作。"), COMMAND_HELP_FOOTER(Lang.COMMAND_HELP_FOOTER, - "§7Type §e/am help §7for help on command usage."), - - SUBCOMMAND_CLEAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_CLEAN_INFO_DESCRIPTION, "Cleans OS or plugins from Skyrage."), - SUBCOMMAND_CLEAN_SPECIFICATION(Lang.SUBCOMMAND_CLEAN_SPECIFICATION, "§cYou need to specify, what you would like to clean. Use /am cleanskyrage ."), - SUBCOMMAND_CLEAN_CLEANING(Lang.SUBCOMMAND_CLEAN_CLEANING, "§7Cleaning the OS of the server from Skyrage Malware..."), - SUBCOMMAND_CLEAN_OS_NOT_INFECTED(Lang.SUBCOMMAND_CLEAN_OS_NOT_INFECTED, "§aIt looks like the OS of the server is not infected by Skyrage Malware."), - SUBCOMMAND_CLEAN_PLUGINS_NOT_INFECTED(Lang.SUBCOMMAND_CLEAN_PLUGINS_NOT_INFECTED, "§aIt looks like there isn't any plugin infected by Skyrage Malware."), - SUBCOMMAND_CLEAN_PLUGINS_CLEANING(Lang.SUBCOMMAND_CLEAN_PLUGINS_CLEANING, "§aRemoving Skyrage Malware from file %s..."), - SUBCOMMAND_CLEAN_PLUGINS_TOTAL_CLEANED(Lang.SUBCOMMAND_CLEAN_PLUGINS_TOTAL_CLEANED, "§aRemoved Skyrage Malware from %s files."), - - SUBCOMMAND_LANGUAGE_INFO_DESCRIPTION(Lang.SUBCOMMAND_LANGUAGE_INFO_DESCRIPTION, "Change the language of the plugin."), - SUBCOMMAND_LANGUAGE_ERROR_NO_SUCH_LANGUAGE(Lang.SUBCOMMAND_LANGUAGE_ERROR_NO_SUCH_LANGUAGE, "§cNo language was found by that string."), - SUBCOMMAND_LANGUAGE_ERROR_BAD_CONFIG(Lang.SUBCOMMAND_LANGUAGE_ERROR_BAD_CONFIG, "§cYou may have a old config or typed something badly in it. Remove it, restart the server and try again."), - SUBCOMMAND_LANGUAGE_ERROR_SPECIFICATION(Lang.SUBCOMMAND_LANGUAGE_ERROR_SPECIFICATION, "§cYou have to chose a language."), - SUBCOMMAND_LANGUAGE_CHANGED(Lang.SUBCOMMAND_LANGUAGE_CHANGED, "§aThe language is now changed to english."), - - SUBCOMMAND_DEEPSCAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_DEEPSCAN_INFO_DESCRIPTION, "Detailed scan of files with virus and backdoors."), - SUBCOMMAND_SIMPLESCAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_SIMPLESCAN_INFO_DESCRIPTION, "Simple scan of files with virus and backdoors."), - SUBCOMMAND_HELP_INFO_DESCRIPTION(Lang.SUBCOMMAND_HELP_INFO_DESCRIPTION, "Sends all the commands you can use."), - SUBCOMMAND_RELOAD_INFO_DESCRIPTION(Lang.SUBCOMMAND_RELOAD_INFO_DESCRIPTION, "Reloads file cache and configuration."), - SUBCOMMAND_RELOAD_RELOADING(Lang.SUBCOMMAND_RELOAD_RELOADING, "§7Reloading file cache and configuration..."), - - SCANNING_ERROR_NO_AVAILABLE_SCANNER(Lang.SCANNING_ERROR_NO_AVAILABLE_SCANNER, "§cThere encountered an error. Try waiting some time."), - SCANNING_ERROR_NO_SUCH_PLUGIN(Lang.SCANNING_ERROR_NO_SUCH_PLUGIN, "§cCouldn't find any plugin that match."), - SCANNING_ERROR_ALREADY_SCANNING(Lang.SCANNING_ERROR_ALREADY_SCANNING, "§cThe server is already caching scannings. Wait some time... (%s/%s)"), - SCANNING_ERROR_NO_RESULT(Lang.SCANNING_ERROR_NO_RESULT, "§cThere wasn't found any data from the scan."), - SCANNING_ERROR_UNKNOWN(Lang.SCANNING_ERROR_UNKNOWN, "§cThere encountered an error. Try waiting some time."), - SCANNING_WARN_MANY_INFECTED(Lang.SCANNING_WARN_MANY_INFECTED, "§cIt looks like, that the server has a lot of files infected. " + - "This could be due to one plugin infecting all of the other ones. You would have to install all of them again, and " + - "ServerSecurity as well."), - SCANNING_STARTING(Lang.SCANNING_STARTING, "§7Scanning %s files for malware and backdoors..."), - SCANNING_DONE_CHAT(Lang.SCANNING_DONE_CHAT, "§7Done scanning %s files and found %s with malware or backdoor."), - SCANNING_DONE_LOG(Lang.SCANNING_DONE_LOG, "Done scanning %s files and found %s with malware or backdoor."), - SCANNING_WARN_INFECTED_JOIN(Lang.SCANNING_WARN_INFECTED_JOIN, "§cThere has been found malware in a plugin. Use /am scan for more information."), - SCANNING_RESULT_GREEN(Lang.SCANNING_RESULT_GREEN, "§aThis plugin is not infected."), - SCANNING_RESULT_YELLOW(Lang.SCANNING_RESULT_YELLOW, "§eThis plugin is most likely not infected."), - SCANNING_RESULT_RED(Lang.SCANNING_RESULT_RED, "§cThis plugin is might infected."), - SCANNING_RESULT_MALWARE(Lang.SCANNING_RESULT_MALWARE, "§4This plugin is infected! Remove it immediately!"), - SCANNING_RESULT_REPLACER(Lang.SCANNING_RESULT_REPLACER, "This plugin"), - - CLEANING_ERROR_PROCESS_RESERVED(Lang.CLEANING_ERROR_PROCESS_RESERVED, "§cThe file is reserved by a different proces and can therefore not be modified."), - CLEANING_WINDOWS_ERROR_NO_WRITE_PERMISSION(Lang.CLEANING_WINDOWS_ERROR_NO_WRITE_PERMISSION, "§cThe server is still infected! You have to give access to modify files."), - CLEANING_WINDOWS_ERROR_TASK_KILL(Lang.CLEANING_WINDOWS_ERROR_TASK_KILL, "§cThe server is still infected! There encountered an error when trying to kill the process."), - CLEANING_LINUX_ERROR_ABORTED(Lang.CLEANING_LINUX_ERROR_ABORTED, "§cThe server is still infected! The cleaning was aborted by some other thread or process."), - CLEANING_LINUX_ERROR_NO_WRITE_PERMISSION(Lang.CLEANING_LINUX_ERROR_NO_WRITE_PERMISSION, "§cThe server is still infected! You have to give access to modify files."), - - NETWORK_ERROR_ACTIVATING_INTERCEPTOR(Lang.NETWORK_ERROR_ACTIVATING_INTERCEPTOR, "§cThere encountered an error when activating the network interceptor."), - NETWORK_ERROR_REPLACE_SECURITY_MANAGER(Lang.NETWORK_ERROR_REPLACE_SECURITY_MANAGER, "§cThere encountered an error when deactivating the network interceptor."), - NETWORK_BLOCKED(Lang.NETWORK_BLOCKED, "Blocked protocol from address: %s"), - - SECURITY_BLOCKED_COMMAND(Lang.SECURITY_BLOCKED_COMMAND, "Blocked console command: %s"), - SECURITY_BLOCKED_OPERATOR_CHANGE(Lang.SECURITY_BLOCKED_OPERATOR_CHANGE, "Blocked operator shift: %s -> %s (%s)"), - SECURITY_BLOCKED_BACKDOOR_CHAT(Lang.SECURITY_BLOCKED_BACKDOOR_CHAT, "§cPossible backdoor was found! Used by: %s"), - SECURITY_BLOCKED_BACKDOOR_KICK(Lang.SECURITY_BLOCKED_BACKDOOR_KICK, "§cPossible backdoor was found! Contact a member of the staff team, if this is a mistake."), - SECURITY_OPPROXY_BLOCKED_LOG(Lang.SECURITY_OPPROXY_BLOCKED_LOG, "Operator of player was denied: %s"), - SECURITY_OPPROXY_BLOCKED_INFO(Lang.SECURITY_OPPROXY_BLOCKED_INFO, "§cOperator of player was denied: %s. If the player " + - "should be an operator, you can give the player access in config.yml"), - SECURITY_OPPROXY_LOG_OP(Lang.SECURITY_OPPROXY_LOG_OP, "Player is now op: %s"), - SECURITY_OPPROXY_LOG_DEOP(Lang.SECURITY_OPPROXY_LOG_DEOP, "Player is now deop: %s"), - - UPDATE_FOUND(Lang.UPDATE_FOUND, "§7Found an update: v%s. Download:") + "§7使用 §e/am help §7来获得命令帮助。"), + + SUBCOMMAND_CLEAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_CLEAN_INFO_DESCRIPTION, "清理系统和插件内的Skyrage蠕虫病毒。"), + SUBCOMMAND_CLEAN_SPECIFICATION(Lang.SUBCOMMAND_CLEAN_SPECIFICATION, "§c你需要填写参数,指定如何清理?再次使用 /am cleanskyrage 。"), + SUBCOMMAND_CLEAN_CLEANING(Lang.SUBCOMMAND_CLEAN_CLEANING, "§7正在清理服务器操作系统中的Skyrage恶意软件..."), + SUBCOMMAND_CLEAN_OS_NOT_INFECTED(Lang.SUBCOMMAND_CLEAN_OS_NOT_INFECTED, "§a看起来服务器的操作系统没有被Skyrage恶意软件感染。"), + SUBCOMMAND_CLEAN_PLUGINS_NOT_INFECTED(Lang.SUBCOMMAND_CLEAN_PLUGINS_NOT_INFECTED, "§a看起来没有插件感染了Skyrage恶意软件。"), + SUBCOMMAND_CLEAN_PLUGINS_CLEANING(Lang.SUBCOMMAND_CLEAN_PLUGINS_CLEANING, "§a正在从文件 %s 中移除Skyrage恶意软件..."), + SUBCOMMAND_CLEAN_PLUGINS_TOTAL_CLEANED(Lang.SUBCOMMAND_CLEAN_PLUGINS_TOTAL_CLEANED, "§a从 %s 个文件中移除了Skyrage恶意软件。"), + + SUBCOMMAND_LANGUAGE_INFO_DESCRIPTION(Lang.SUBCOMMAND_LANGUAGE_INFO_DESCRIPTION, "更改插件的语言。"), + SUBCOMMAND_LANGUAGE_ERROR_NO_SUCH_LANGUAGE(Lang.SUBCOMMAND_LANGUAGE_ERROR_NO_SUCH_LANGUAGE, "§c找不到该语言。"), + SUBCOMMAND_LANGUAGE_ERROR_BAD_CONFIG(Lang.SUBCOMMAND_LANGUAGE_ERROR_BAD_CONFIG, "§c配置文件可能是旧的,或者你在其中写错了。删除后重启服务器并重试。"), + SUBCOMMAND_LANGUAGE_ERROR_SPECIFICATION(Lang.SUBCOMMAND_LANGUAGE_ERROR_SPECIFICATION, "§c你必须选择一种语言。"), + SUBCOMMAND_LANGUAGE_CHANGED(Lang.SUBCOMMAND_LANGUAGE_CHANGED, "§a语言已更改为英语。"), + + SUBCOMMAND_DEEPSCAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_DEEPSCAN_INFO_DESCRIPTION, "对带有病毒和后门的文件进行详细扫描。"), + SUBCOMMAND_SIMPLESCAN_INFO_DESCRIPTION(Lang.SUBCOMMAND_SIMPLESCAN_INFO_DESCRIPTION, "对带有病毒和后门的文件进行简单扫描。"), + SUBCOMMAND_HELP_INFO_DESCRIPTION(Lang.SUBCOMMAND_HELP_INFO_DESCRIPTION, "发送你可以使用的所有命令。"), + SUBCOMMAND_RELOAD_INFO_DESCRIPTION(Lang.SUBCOMMAND_RELOAD_INFO_DESCRIPTION, "重新加载文件缓存和配置。"), + SUBCOMMAND_RELOAD_RELOADING(Lang.SUBCOMMAND_RELOAD_RELOADING, "§7正在重新加载文件缓存和配置..."), + + SCANNING_ERROR_NO_AVAILABLE_SCANNER(Lang.SCANNING_ERROR_NO_AVAILABLE_SCANNER, "§c发生了错误。请稍等片刻。"), + SCANNING_ERROR_NO_SUCH_PLUGIN(Lang.SCANNING_ERROR_NO_SUCH_PLUGIN, "§c找不到匹配的插件。"), + SCANNING_ERROR_ALREADY_SCANNING(Lang.SCANNING_ERROR_ALREADY_SCANNING, "§c服务器已经在缓存扫描中。请稍等... (%s/%s)"), + SCANNING_ERROR_NO_RESULT(Lang.SCANNING_ERROR_NO_RESULT, "§c扫描中未发现任何数据。"), + SCANNING_ERROR_UNKNOWN(Lang.SCANNING_ERROR_UNKNOWN, "§c发生了错误。请稍等片刻。"), + SCANNING_WARN_MANY_INFECTED(Lang.SCANNING_WARN_MANY_INFECTED, "§c看起来服务器中有很多被感染的文件。" + + "这可能是由于一个插件感染了所有其他插件。你需要重新安装所有插件,以及ServerSecurity。"), + SCANNING_STARTING(Lang.SCANNING_STARTING, "§7正在扫描 %s 个文件中的恶意软件和后门..."), + SCANNING_DONE_CHAT(Lang.SCANNING_DONE_CHAT, "§7扫描完毕,共扫描了 %s 个文件,发现 %s 个感染了恶意软件或后门。"), + SCANNING_DONE_LOG(Lang.SCANNING_DONE_LOG, "扫描完毕,共扫描了 %s 个文件,发现 %s 个感染了恶意软件或后门。"), + SCANNING_WARN_INFECTED_JOIN(Lang.SCANNING_WARN_INFECTED_JOIN, "§c发现插件中存在恶意软件。使用 /am scan 获取更多信息。"), + SCANNING_RESULT_GREEN(Lang.SCANNING_RESULT_GREEN, "§a此插件未感染。"), + SCANNING_RESULT_YELLOW(Lang.SCANNING_RESULT_YELLOW, "§e此插件很可能未感染。"), + SCANNING_RESULT_RED(Lang.SCANNING_RESULT_RED, "§c此插件可能已感染。"), + SCANNING_RESULT_MALWARE(Lang.SCANNING_RESULT_MALWARE, "§4此插件已感染!请立即删除!"), + SCANNING_RESULT_REPLACER(Lang.SCANNING_RESULT_REPLACER, "这个插件"), + + CLEANING_ERROR_PROCESS_RESERVED(Lang.CLEANING_ERROR_PROCESS_RESERVED, "§c此插件被其他进程占用,无法扫描。"), + CLEANING_WINDOWS_ERROR_NO_WRITE_PERMISSION(Lang.CLEANING_WINDOWS_ERROR_NO_WRITE_PERMISSION, "§c此服务器仍然受到感染,在Windows下无法进行文件热修改。"), + CLEANING_WINDOWS_ERROR_TASK_KILL(Lang.CLEANING_WINDOWS_ERROR_TASK_KILL, "§c服务器仍然受到感染!尝试终止进程时发生错误。"), + CLEANING_LINUX_ERROR_ABORTED(Lang.CLEANING_LINUX_ERROR_ABORTED, "§c服务器仍然受到感染!清理被其他线程或进程中断。"), + CLEANING_LINUX_ERROR_NO_WRITE_PERMISSION(Lang.CLEANING_LINUX_ERROR_NO_WRITE_PERMISSION, "§c服务器仍然受到感染!你需要给予修改文件的权限。"), + + NETWORK_ERROR_ACTIVATING_INTERCEPTOR(Lang.NETWORK_ERROR_ACTIVATING_INTERCEPTOR, "§c激活网络拦截器时遇到了错误。"), + NETWORK_ERROR_REPLACE_SECURITY_MANAGER(Lang.NETWORK_ERROR_REPLACE_SECURITY_MANAGER, "§c停用网络拦截器时遇到了错误。"), + NETWORK_BLOCKED(Lang.NETWORK_BLOCKED, "已阻止来自地址 %s 的协议"), + + SECURITY_BLOCKED_COMMAND(Lang.SECURITY_BLOCKED_COMMAND, "已阻止控制台命令:%s"), + SECURITY_BLOCKED_OPERATOR_CHANGE(Lang.SECURITY_BLOCKED_OPERATOR_CHANGE, "已阻止管理员更改:%s -> %s (%s)"), + SECURITY_BLOCKED_BACKDOOR_CHAT(Lang.SECURITY_BLOCKED_BACKDOOR_CHAT, "§c发现可能的后门!使用者:%s"), + SECURITY_BLOCKED_BACKDOOR_KICK(Lang.SECURITY_BLOCKED_BACKDOOR_KICK, "§c发现可能的后门!如果这是一个错误,请联系工作人员。"), + SECURITY_OPPROXY_BLOCKED_LOG(Lang.SECURITY_OPPROXY_BLOCKED_LOG, "玩家的管理员权限被拒绝:%s"), + SECURITY_OPPROXY_BLOCKED_INFO(Lang.SECURITY_OPPROXY_BLOCKED_INFO, "§c玩家的管理员权限被拒绝:%s。如果该玩家应当拥有管理员权限,你可以在 config.yml 中授予权限。"), + SECURITY_OPPROXY_LOG_OP(Lang.SECURITY_OPPROXY_LOG_OP, "玩家 %s 现在是服务器管理员(OP)了。"), + SECURITY_OPPROXY_LOG_DEOP(Lang.SECURITY_OPPROXY_LOG_DEOP, "玩家 %s 现在不再是服务器管理员(OP)了。"), + + UPDATE_FOUND(Lang.UPDATE_FOUND, "§7发现了一个更新:v%s。下载地址:") ; private final Lang lang;