From e2743ffa4e85ff1fa765fda4de58ea8ad81b0b53 Mon Sep 17 00:00:00 2001 From: virustotalop Date: Sat, 19 Mar 2022 15:54:24 -0700 Subject: [PATCH] Add proxy shutdown localization (#663) --- .../main/java/com/velocitypowered/proxy/VelocityServer.java | 2 +- .../com/velocitypowered/proxy/l10n/messages.properties | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index 4caa2b788..bfed890ac 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -533,7 +533,7 @@ public class VelocityServer implements ProxyServer, ForwardingAudience { * @param explicitExit whether the user explicitly shut down the proxy */ public void shutdown(boolean explicitExit) { - shutdown(explicitExit, Component.text("Proxy shutting down.")); + shutdown(explicitExit, Component.translatable("velocity.kick.shutdown")); } @Override diff --git a/proxy/src/main/resources/com/velocitypowered/proxy/l10n/messages.properties b/proxy/src/main/resources/com/velocitypowered/proxy/l10n/messages.properties index 0ecb0010f..5ac4ea9ea 100644 --- a/proxy/src/main/resources/com/velocitypowered/proxy/l10n/messages.properties +++ b/proxy/src/main/resources/com/velocitypowered/proxy/l10n/messages.properties @@ -67,3 +67,6 @@ velocity.command.dump-success=Created an anonymised report containing useful inf velocity.command.dump-will-expire=This link will expire in a few days. velocity.command.dump-server-error=An error occurred on the Velocity servers and the dump could not be completed. Please contact the Velocity staff about this problem and provide the details about this error from the Velocity console or server log. velocity.command.dump-offline=Likely cause: Invalid system DNS settings or no internet connection + +# Kick +velocity.kick.shutdown=Proxy shutting down. \ No newline at end of file