diff --git a/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java b/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java index 9f96b0108..f24d252d7 100644 --- a/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java +++ b/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java @@ -132,7 +132,10 @@ public class TranslatableComponent extends BaseComponent break; } } - + if ( trans.length() != position ) + { + builder.append( trans.substring( position, trans.length() ) ); + } } super.toPlainText( builder ); } @@ -143,6 +146,7 @@ public class TranslatableComponent extends BaseComponent String trans = locales.getString( translate ); if ( trans == null ) { + addFormat( builder ); builder.append( translate ); } else { @@ -173,7 +177,11 @@ public class TranslatableComponent extends BaseComponent break; } } - + if ( trans.length() != position ) + { + addFormat( builder ); + builder.append( trans.substring( position, trans.length() ) ); + } } super.toLegacyText( builder ); }