OptimusServer
Minecrafter
Ich habe hier mal einen Codeschnipsel für euch (Es handelt sich hierbei um Bungeecord):
TextComponent textComponent = new TextComponent("Test_1");
textComponent.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponent[]{
new TextComponent("Test_2"), new TextComponent("Test_3")
}));
Wie bekomme ich Test2 und Test3 untereinander (also mit Zeilenumbruch) anstatt nebeneinander?
Vielen Dank im Vorraus
TextComponent textComponent = new TextComponent("Test_1");
textComponent.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponent[]{
new TextComponent("Test_2"), new TextComponent("Test_3")
}));
Wie bekomme ich Test2 und Test3 untereinander (also mit Zeilenumbruch) anstatt nebeneinander?
Vielen Dank im Vorraus