1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-28 05:54:16 +02:00

Improve styling

This commit is contained in:
Shy
2024-08-22 13:57:31 +02:00
parent faa2eb0a43
commit fb785fb53a
@@ -84,10 +84,13 @@ public class SocialSpyListener implements Listener {
public static void command(Player player, String command){ public static void command(Player player, String command){
for (CommandSender target : targets) { for (CommandSender target : targets) {
target.sendMessage(text("[SocialSpy] ") target.sendMessage(text("[", PRIMARY_COLOR)
.append(player.displayName().colorIfAbsent(SECONDARY_COLOR)) .append(text("SocialSpy", SECONDARY_COLOR))
.append(text(": " + command).color(SECONDARY_COLOR)) .append(text("] "))
.color(PRIMARY_COLOR)); .append(player.displayName().colorIfAbsent(PRIMARY_COLOR))
.append(text(": ", PRIMARY_COLOR))
.append(text(command, SECONDARY_COLOR))
);
} }
} }