We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e8554 commit 9ea137fCopy full SHA for 9ea137f
1 file changed
README.md
@@ -50,11 +50,16 @@ Translatable component into a sentence :
50
```
51
/* Our text component (a sentence for example) */
52
final TextComponent text = new TextComponent("Please use your ");
53
+
54
/* Our component which will be translated by client */
55
final TranslatableComponent translatableDiamond = new TranslatableComponent(MaterialLang.DIAMOND.getTranslation());
56
57
text.addExtra(translatableDiamond);
58
59
/* We can put a color on the translated component :) */
60
translatableDiamond.setColor(net.md_5.bungee.api.ChatColor.GOLD);
61
62
63
player.sendMessage(text);
64
65
0 commit comments