diff --git a/api/src/main/java/net/md_5/bungee/api/ProxyServer.java b/api/src/main/java/net/md_5/bungee/api/ProxyServer.java index 88cc389f6..4da11dbf4 100644 --- a/api/src/main/java/net/md_5/bungee/api/ProxyServer.java +++ b/api/src/main/java/net/md_5/bungee/api/ProxyServer.java @@ -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 diff --git a/api/src/main/java/net/md_5/bungee/api/event/ServerSwitchEvent.java b/api/src/main/java/net/md_5/bungee/api/event/ServerSwitchEvent.java index 69b7e69f7..4722517ae 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/ServerSwitchEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/ServerSwitchEvent.java @@ -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. */ diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java b/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java index 5c8b8038a..0b47a2e68 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/Plugin.java @@ -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 ); } } diff --git a/event/src/main/java/net/md_5/bungee/event/EventHandler.java b/event/src/main/java/net/md_5/bungee/event/EventHandler.java index 74a792643..34c07ba0a 100644 --- a/event/src/main/java/net/md_5/bungee/event/EventHandler.java +++ b/event/src/main/java/net/md_5/bungee/event/EventHandler.java @@ -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; diff --git a/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java b/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java index a409125f5..527914fe3 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java +++ b/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java @@ -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; } 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 5b6882d80..327e36b1d 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 @@ -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 );