Fix some out of style formatting.
This commit is contained in:
parent
c965e60f5e
commit
949f150ea0
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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() ) );
|
||||
|
@ -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
|
||||
{
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user