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) new ChatMessage(Icon.STAR)
.appendTranslated("score#result") .appendTranslated("score#result")
.newLine() .newLine()
.appendStatic("Test")
.appendStatic("Test")
.indent() .indent()
.list(testplayers) .numberedList(testplayers)
.undent()
.newLine()
.appendTranslated("score#thanks") .appendTranslated("score#thanks")
.send(sender); .send(sender);
}); });

View File

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