From 14e3b93a241219f6e59eb7c6e155fd3dc0a03737 Mon Sep 17 00:00:00 2001 From: Zach Date: Tue, 6 Aug 2024 05:20:58 -0500 Subject: [PATCH] Update console prefix --- .../simplestaffchat/utilities/chat/RyMessageUtils.java | 6 +++--- .../simplestaffchat/utilities/chat/RyMessageUtils.java | 6 +++--- .../simplestaffchat/utilities/chat/RyMessageUtils.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java b/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java index f18b4be..b9511ad 100644 --- a/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java +++ b/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java @@ -287,7 +287,7 @@ public static void sendSender(CommandSender sender, List messages) { * @param message The message you wish for console to receive. */ public static void sendConsole(boolean prefix, String message) { - if (prefix) message = "<#7D0DC3>[SimpleStaffChat] &f" + message; + if (prefix) message = "<#7D0DC3>[" + instance.getDescription().getName() + "] &f" + message; if (getAudiences() != null) { getAudiences().console().sendMessage(adventureTranslate(message)); @@ -305,7 +305,7 @@ public static void sendConsole(boolean prefix, String message) { */ public static void sendConsole(boolean prefix, String... messages) { for (String message : messages) { - if (prefix) message = "<#7D0DC3>[SimpleStaffChat] &f" + message; + if (prefix) message = "<#7D0DC3>[" + instance.getDescription().getName() + "] &f" + message; if (getAudiences() != null) { getAudiences().console().sendMessage(adventureTranslate(message)); @@ -324,7 +324,7 @@ public static void sendConsole(boolean prefix, String... messages) { */ public static void sendConsole(boolean prefix, List messages) { for (String message : messages) { - if (prefix) message = "<#7D0DC3>[SimpleStaffChat] &f" + message; + if (prefix) message = "<#7D0DC3>[" + instance.getDescription().getName() + "] &f" + message; if (getAudiences() != null) { getAudiences().console().sendMessage(adventureTranslate(message)); diff --git a/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java b/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java index 89a5e8b..23b1df5 100644 --- a/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java +++ b/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java @@ -227,7 +227,7 @@ public static void sendSender(@NotNull CommandSender sender, @NotNull List messages) { for (String message : messages) { - if (prefix) message = "<#7D0DC3>[SimpleStaffChat] &f" + message; + if (prefix) message = "<#7D0DC3>[" + instance.getDescription().getName() + "] &f" + message; Bukkit.getConsoleSender().sendMessage(translate(message)); } diff --git a/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java b/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java index ffe2be0..1e04bf1 100644 --- a/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java +++ b/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/chat/RyMessageUtils.java @@ -221,7 +221,7 @@ public void sendSender(@NotNull CommandSource sender, @NotNull List mess */ public void sendConsole(boolean prefix, String message) { if (prefix) { - server.getConsoleCommandSource().sendMessage(translate("<#7D0DC3>[SimpleStaffChat] &f" + message)); + server.getConsoleCommandSource().sendMessage(translate("<#7D0DC3>[" + instance.getContainer().getDescription().getName() + "] &f" + message)); } else { server.getConsoleCommandSource().sendMessage(translate(message)); }