From e0d19cf3053b45ac9074420678207acecc5d8d03 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 24 May 2013 14:37:40 +1000 Subject: [PATCH] Show current server in server command --- .../net/md_5/bungee/command/CommandServer.java | 2 ++ proxy/src/main/resources/messages_en.properties | 17 +++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/command/CommandServer.java b/proxy/src/main/java/net/md_5/bungee/command/CommandServer.java index 327e36b1d..d5bb59d80 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/CommandServer.java +++ b/proxy/src/main/java/net/md_5/bungee/command/CommandServer.java @@ -30,6 +30,8 @@ public class CommandServer extends Command Map servers = ProxyServer.getInstance().getServers(); if ( args.length == 0 ) { + player.sendMessage( ProxyServer.getInstance().getTranslation( "current_server" ) + player.getServer().getInfo().getName() ); + StringBuilder serverList = new StringBuilder(); for ( ServerInfo server : servers.values() ) { diff --git a/proxy/src/main/resources/messages_en.properties b/proxy/src/main/resources/messages_en.properties index d27305a1c..114a72899 100644 --- a/proxy/src/main/resources/messages_en.properties +++ b/proxy/src/main/resources/messages_en.properties @@ -1,14 +1,15 @@ -alert: \u00A75[Alert] +alert: \u00a75[Alert] already_connected: You are already connected to the server -connect_kick: \u00A7cKicked whilst connecting to -fallback_kick: \u00A7cCould not connect to default server, please try again later: -fallback_lobby: \u00A7cCould not connect to target server, you have been moved to the lobby server +connect_kick: \u00a7cKicked whilst connecting to +current_server: \u00a76You are currently connected to +fallback_kick: \u00a7cCould not connect to default server, please try again later: +fallback_lobby: \u00a7cCould not connect to target server, you have been moved to the lobby server lost_connection: [Proxy] Lost connection to server. -no_permission: \u00A7cYou do not have permission to execute this command! -no_server: \u00A7cThe specified server does not exist -no_server_permission: \u00A7cYou don't have permission to access this server +no_permission: \u00a7cYou do not have permission to execute this command! +no_server: \u00a7cThe specified server does not exist +no_server_permission: \u00a7cYou don't have permission to access this server proxy_full: Server is full restart: [Proxy] Proxy restarting. server_kick: [Kicked] -server_list: \u00A76You may connect to the following servers at this time: +server_list: \u00a76You may connect to the following servers at this time: total_players: Total players online: