Skip to content

Commit

Permalink
Update console prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Refrac committed Aug 6, 2024
1 parent 881d60c commit 14e3b93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public static void sendSender(CommandSender sender, List<String> 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));
Expand All @@ -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));
Expand All @@ -324,7 +324,7 @@ public static void sendConsole(boolean prefix, String... messages) {
*/
public static void sendConsole(boolean prefix, List<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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public static void sendSender(@NotNull CommandSender sender, @NotNull List<Strin
* @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;

Bukkit.getConsoleSender().sendMessage(translate(message));
}
Expand All @@ -240,7 +240,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;

Bukkit.getConsoleSender().sendMessage(translate(message));
}
Expand All @@ -254,7 +254,7 @@ public static void sendConsole(boolean prefix, String... messages) {
*/
public static void sendConsole(boolean prefix, List<String> 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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void sendSender(@NotNull CommandSource sender, @NotNull List<String> 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));
}
Expand Down

0 comments on commit 14e3b93

Please sign in to comment.