Skip to content

Commit 9ea137f

Browse files
authored
Update README.md
1 parent f3e8554 commit 9ea137f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,16 @@ Translatable component into a sentence :
5050
```
5151
/* Our text component (a sentence for example) */
5252
final TextComponent text = new TextComponent("Please use your ");
53+
5354
/* Our component which will be translated by client */
5455
final TranslatableComponent translatableDiamond = new TranslatableComponent(MaterialLang.DIAMOND.getTranslation());
56+
5557
text.addExtra(translatableDiamond);
58+
5659
/* We can put a color on the translated component :) */
5760
translatableDiamond.setColor(net.md_5.bungee.api.ChatColor.GOLD);
61+
62+
5863
player.sendMessage(text);
5964
```
6065

0 commit comments

Comments
 (0)