Fix formatting

This commit is contained in:
md_5 2013-05-16 16:49:14 +10:00
parent 67fdc830c2
commit 9a0da50e6c
6 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ public abstract class ProxyServer
*
* @return the localized string
*/
public abstract String getTranslation( String name );
public abstract String getTranslation(String name);
/**
* Gets the main logger which can be used as a suitable replacement for

View File

@ -5,6 +5,7 @@ import lombok.EqualsAndHashCode;
import lombok.ToString;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Event;
/**
* Called when a player has changed servers.
*/

View File

@ -81,6 +81,6 @@ public class Plugin
this.proxy = proxy;
this.description = description;
this.file = file;
this.logger = new PluginLogger(this);
this.logger = new PluginLogger( this );
}
}

View File

@ -1,6 +1,5 @@
package net.md_5.bungee.event;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -26,7 +26,7 @@ public class CommandSend extends Command
ServerInfo target = ProxyServer.getInstance().getServerInfo( args[1] );
if ( target == null )
{
sender.sendMessage( ProxyServer.getInstance().getTranslation( "no_server") );
sender.sendMessage( ProxyServer.getInstance().getTranslation( "no_server" ) );
return;
}

View File

@ -43,16 +43,16 @@ public class CommandServer extends Command
{
serverList.setLength( serverList.length() - 2 );
}
player.sendMessage( ProxyServer.getInstance().getTranslation( "server_list") + serverList.toString() );
player.sendMessage( ProxyServer.getInstance().getTranslation( "server_list" ) + serverList.toString() );
} else
{
ServerInfo server = servers.get( args[0] );
if ( server == null )
{
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server") );
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server" ) );
} else if ( !server.canAccess( player ) )
{
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission") );
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission" ) );
} else
{
player.connect( server );