Show current server in server command

This commit is contained in:
md_5 2013-05-24 14:37:40 +10:00
parent 0e9002091b
commit e0d19cf305
2 changed files with 11 additions and 8 deletions

View File

@ -30,6 +30,8 @@ public class CommandServer extends Command
Map<String, ServerInfo> 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() )
{

View File

@ -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: