From a452ee6faf197c1a023808e7222840aa07b75a81 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 30 Jul 2021 00:42:55 +0200 Subject: [PATCH] Hotfix ChatListener --- src/de/steamwar/bungeecore/listeners/ChatListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/ChatListener.java b/src/de/steamwar/bungeecore/listeners/ChatListener.java index 25c5474..8d86737 100644 --- a/src/de/steamwar/bungeecore/listeners/ChatListener.java +++ b/src/de/steamwar/bungeecore/listeners/ChatListener.java @@ -173,7 +173,10 @@ public class ChatListener extends BasicListener { } public static void discordChat(SteamwarUser user, String message){ - String name = user.getUserGroup().getColorCode() + user.getUserGroup().name() + " " + user.getUserName() + "§r"; + String name = "§r" + user.getUserGroup().name() + " " + user.getUserName() + "§r"; + if (user.getUserGroup() != UserGroup.Member) { + name = user.getUserGroup().getColorCode() + user.getUserGroup().name() + " " + user.getUserName() + "§r"; + } String chatcolor = user.getUserGroup().getChatColorCode(); if(user.getUserGroup() != UserGroup.Member || user.getTeam() == 12 || user.getTeam() == 285 || user.getTeam() == 54)