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
|
@Override
|
||||||
protected void toPlainText(StringBuilder builder)
|
protected void toPlainText(StringBuilder builder)
|
||||||
{
|
{
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
String trans = locales.getString( translate );
|
String trans = locales.getString( translate );
|
||||||
Matcher matcher = format.matcher( trans );
|
Matcher matcher = format.matcher( trans );
|
||||||
int position = 0;
|
int position = 0;
|
||||||
|
@ -2,6 +2,7 @@ package net.md_5.bungee.api.tab;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a custom tab list, which may have slots manipulated.
|
* Represents a custom tab list, which may have slots manipulated.
|
||||||
|
*
|
||||||
* @deprecated Future Minecraft versions render this API useless
|
* @deprecated Future Minecraft versions render this API useless
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@ -50,9 +50,9 @@ public class CommandServer extends Command implements TabExecutor
|
|||||||
TextComponent serverTextComponent = new TextComponent( first ? server.getName() : ", " + server.getName() );
|
TextComponent serverTextComponent = new TextComponent( first ? server.getName() : ", " + server.getName() );
|
||||||
int count = server.getPlayers().size();
|
int count = server.getPlayers().size();
|
||||||
serverTextComponent.setHoverEvent( new HoverEvent( HoverEvent.Action.SHOW_TEXT,
|
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 )
|
.append( "Click to connect to the server" ).italic( true )
|
||||||
.create() ) );
|
.create() ) );
|
||||||
serverTextComponent.setClickEvent( new ClickEvent( ClickEvent.Action.RUN_COMMAND, "/server " + server.getName() ) );
|
serverTextComponent.setClickEvent( new ClickEvent( ClickEvent.Action.RUN_COMMAND, "/server " + server.getName() ) );
|
||||||
serverList.addExtra( serverTextComponent );
|
serverList.addExtra( serverTextComponent );
|
||||||
first = false;
|
first = false;
|
||||||
|
@ -31,7 +31,10 @@ import net.md_5.bungee.protocol.DefinedPacket;
|
|||||||
import net.md_5.bungee.protocol.packet.PluginMessage;
|
import net.md_5.bungee.protocol.packet.PluginMessage;
|
||||||
|
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ToString(of = { "name", "address", "restricted" })
|
@ToString(of =
|
||||||
|
{
|
||||||
|
"name", "address", "restricted"
|
||||||
|
})
|
||||||
public class BungeeServerInfo implements ServerInfo
|
public class BungeeServerInfo implements ServerInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import net.md_5.bungee.protocol.ProtocolConstants;
|
|||||||
|
|
||||||
class EntityMap_1_7_2 extends EntityMap
|
class EntityMap_1_7_2 extends EntityMap
|
||||||
{
|
{
|
||||||
|
|
||||||
EntityMap_1_7_2()
|
EntityMap_1_7_2()
|
||||||
{
|
{
|
||||||
addRewrite( 0x04, ProtocolConstants.Direction.TO_CLIENT, false ); // Entity Equipment
|
addRewrite( 0x04, ProtocolConstants.Direction.TO_CLIENT, false ); // Entity Equipment
|
||||||
|
Loading…
Reference in New Issue
Block a user