Skip to content

Commit b35da70

Browse files
committed
Allow leave messages to have color
1 parent 57b7234 commit b35da70

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

common/src/main/java/org/anvilpowered/catalyst/common/listener/CommonLeaveListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ public void onPlayerLeave(TPlayer player, UUID playerUUID) {
8585
: registry.getOrDefault(CatalystKeys.LEAVE_MESSAGE);
8686

8787
broadcastService.broadcast(
88-
textService.of(
88+
textService.deserialize(
8989
message
9090
.replace("%player%", userService.getUserName((TUser) player))
9191
));
9292

9393
loggerService.info(
94-
textService.of(
94+
textService.deserialize(
9595
registry.getOrDefault(CatalystKeys.LEAVE_MESSAGE)
9696
.replace("%player%", userService.getUserName((TUser) player))
9797
)

velocity/src/main/java/org/anvilpowered/catalyst/velocity/command/ServerCommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,18 @@ public void execute(CommandSource source, @NonNull String[] args) {
100100
count.getAndIncrement();
101101
});
102102
TextComponent servers = TextComponent.builder()
103-
.append(textService.of("=========================================================\n").color(TextColor.DARK_AQUA))
103+
.append(textService.of("=====================================================\n").color(TextColor.DARK_AQUA))
104104
.append(pluginInfo.getPrefix())
105105
.append(textService.of("Green = Current").color(TextColor.GREEN))
106106
.append(textService.of(", ").color(TextColor.YELLOW))
107107
.append(textService.of("Gray = Available").color(TextColor.GRAY))
108108
.append(textService.of(", ").color(TextColor.YELLOW))
109109
.append(textService.of("Red = Offline\n").color(TextColor.RED))
110-
.append(textService.of("--------------------------------------------------------\n").color(TextColor.DARK_AQUA))
110+
.append(textService.of("-----------------------------------------------------\n").color(TextColor.DARK_AQUA))
111111
.append(availableServers)
112-
.append(textService.of("\n--------------------------------------------------------\n").color(TextColor.DARK_AQUA))
112+
.append(textService.of("\n-----------------------------------------------------\n").color(TextColor.DARK_AQUA))
113113
.append(textService.of("Click an available server to join!").color(TextColor.GOLD))
114-
.append(textService.of("\n=========================================================").color(TextColor.DARK_AQUA))
114+
.append(textService.of("\n=====================================================").color(TextColor.DARK_AQUA))
115115
.build();
116116
player.sendMessage(servers);
117117
return;

0 commit comments

Comments
 (0)