Fix some out of style formatting.

This commit is contained in:
md_5 2014-07-12 19:50:56 +10:00
parent c965e60f5e
commit 949f150ea0
5 changed files with 11 additions and 5 deletions

View File

@ -104,7 +104,8 @@ public class TranslatableComponent extends BaseComponent
@Override
protected void toPlainText(StringBuilder builder)
{
try {
try
{
String trans = locales.getString( translate );
Matcher matcher = format.matcher( trans );
int position = 0;

View File

@ -2,6 +2,7 @@ package net.md_5.bungee.api.tab;
/**
* Represents a custom tab list, which may have slots manipulated.
*
* @deprecated Future Minecraft versions render this API useless
*/
@Deprecated

View File

@ -50,7 +50,7 @@ public class CommandServer extends Command implements TabExecutor
TextComponent serverTextComponent = new TextComponent( first ? server.getName() : ", " + server.getName() );
int count = server.getPlayers().size();
serverTextComponent.setHoverEvent( new HoverEvent( HoverEvent.Action.SHOW_TEXT,
new ComponentBuilder( count + (count == 1 ? " player" : " players") + "\n")
new ComponentBuilder( count + ( count == 1 ? " player" : " players" ) + "\n" )
.append( "Click to connect to the server" ).italic( true )
.create() ) );
serverTextComponent.setClickEvent( new ClickEvent( ClickEvent.Action.RUN_COMMAND, "/server " + server.getName() ) );

View File

@ -31,7 +31,10 @@ import net.md_5.bungee.protocol.DefinedPacket;
import net.md_5.bungee.protocol.packet.PluginMessage;
@RequiredArgsConstructor
@ToString(of = { "name", "address", "restricted" })
@ToString(of =
{
"name", "address", "restricted"
})
public class BungeeServerInfo implements ServerInfo
{

View File

@ -6,6 +6,7 @@ import net.md_5.bungee.protocol.ProtocolConstants;
class EntityMap_1_7_2 extends EntityMap
{
EntityMap_1_7_2()
{
addRewrite( 0x04, ProtocolConstants.Direction.TO_CLIENT, false ); // Entity Equipment