Added pipe in chat message spacer

This commit is contained in:
Elias Müller 2023-09-30 23:53:08 +02:00
parent cbe16a669c
commit ee9115b774
3 changed files with 5 additions and 3 deletions

View File

@ -29,10 +29,10 @@ public class DebugCommand extends Command {
new ChatMessage(Icon.STAR)
.appendTranslated("score#result")
.newLine()
.appendStatic("Test")
.appendStatic("Test")
.indent()
.list(testplayers)
.numberedList(testplayers)
.undent()
.newLine()
.appendTranslated("score#thanks")
.send(sender);
});

View File

@ -6,6 +6,8 @@ import net.minestom.server.entity.Player;
public class ChatMessage extends TranslatableMessage {
public ChatMessage(Icon icon) {
super.appendStatic(" ");
pipe();
super.appendStatic("\n");
appendStatic(icon.getComponent());
pipe();