mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Fix formatting
This commit is contained in:
parent
67fdc830c2
commit
9a0da50e6c
@ -54,7 +54,7 @@ public abstract class ProxyServer
|
|||||||
*
|
*
|
||||||
* @return the localized string
|
* @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
|
* Gets the main logger which can be used as a suitable replacement for
|
||||||
|
@ -5,6 +5,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
import net.md_5.bungee.api.plugin.Event;
|
import net.md_5.bungee.api.plugin.Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when a player has changed servers.
|
* Called when a player has changed servers.
|
||||||
*/
|
*/
|
||||||
|
@ -81,6 +81,6 @@ public class Plugin
|
|||||||
this.proxy = proxy;
|
this.proxy = proxy;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.file = file;
|
this.file = file;
|
||||||
this.logger = new PluginLogger(this);
|
this.logger = new PluginLogger( this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package net.md_5.bungee.event;
|
package net.md_5.bungee.event;
|
||||||
|
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
@ -26,7 +26,7 @@ public class CommandSend extends Command
|
|||||||
ServerInfo target = ProxyServer.getInstance().getServerInfo( args[1] );
|
ServerInfo target = ProxyServer.getInstance().getServerInfo( args[1] );
|
||||||
if ( target == null )
|
if ( target == null )
|
||||||
{
|
{
|
||||||
sender.sendMessage( ProxyServer.getInstance().getTranslation( "no_server") );
|
sender.sendMessage( ProxyServer.getInstance().getTranslation( "no_server" ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,16 +43,16 @@ public class CommandServer extends Command
|
|||||||
{
|
{
|
||||||
serverList.setLength( serverList.length() - 2 );
|
serverList.setLength( serverList.length() - 2 );
|
||||||
}
|
}
|
||||||
player.sendMessage( ProxyServer.getInstance().getTranslation( "server_list") + serverList.toString() );
|
player.sendMessage( ProxyServer.getInstance().getTranslation( "server_list" ) + serverList.toString() );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
ServerInfo server = servers.get( args[0] );
|
ServerInfo server = servers.get( args[0] );
|
||||||
if ( server == null )
|
if ( server == null )
|
||||||
{
|
{
|
||||||
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server") );
|
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server" ) );
|
||||||
} else if ( !server.canAccess( player ) )
|
} else if ( !server.canAccess( player ) )
|
||||||
{
|
{
|
||||||
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission") );
|
player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission" ) );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
player.connect( server );
|
player.connect( server );
|
||||||
|
Loading…
Reference in New Issue
Block a user