Update src/main/java/me/zen/Initialization.java

This commit is contained in:
ZenZoya 2024-04-16 21:41:21 -04:00
parent a61f3b669b
commit 3151ba3ee7

View file

@ -137,12 +137,12 @@ public class Initialization {
eventHandler.addListener(ServerListPingEvent.class, event -> {
ResponseData responseData = event.getResponseData();
if (event.getConnection() != null) {
responseData.addEntry(NamedAndIdentified.named(Component.text("Hello! this is ZenZoya's Testing server.", MessageHelper.GRAY_COLOR)));
responseData.addEntry(NamedAndIdentified.named(Component.text("Hello, welcome to GalaxyMC!", MessageHelper.GRAY_COLOR))
}
responseData.setDescription(Component.text("Minestom Server", MessageHelper.BLUE_COLOR)
.append(Component.text(" - ", MessageHelper.GRAY_COLOR))
.append(Component.text("Testing server", MessageHelper.BLUE_ISH_COLOR))
.append(Component.text("Bare minimum minecraft server", MessageHelper.BLUE_ISH_COLOR))
);
});
@ -155,7 +155,7 @@ public class Initialization {
final long ramUsage = (runtime.totalMemory() - runtime.freeMemory()) / 1024 / 1024;
final Component header = Component.newline()
.append(Component.text("Vortres Network", MessageHelper.BLUE_COLOR))
.append(Component.text("GalaxyMC", MessageHelper.BLUE_COLOR))
.append(Component.newline())
.append(Component.text("Players: ", MessageHelper.GRAY_COLOR)).append(Component.text(players.size(), MessageHelper.BLUE_ISH_COLOR))
.append(Component.newline())
@ -166,7 +166,7 @@ public class Initialization {
.append(Component.newline());
final Component footer = Component.newline()
.append(Component.text("Project: minestom.net", TextColor.color(0x8C8C8C))
.append(Component.text("<Smile /> ;>", TextColor.color(0x8C8C8C))
.append(Component.newline()));
Audiences.players().sendPlayerListHeaderAndFooter(header, footer);