Merge pull request 'Fix ChatListener for discord messages' (#331) from FixDiscord into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #331 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
af61b59c8b
@ -174,7 +174,7 @@ public class ChatListener extends BasicListener {
|
|||||||
public static void discordChat(SteamwarUser user, String message){
|
public static void discordChat(SteamwarUser user, String message){
|
||||||
String name = "§r" + user.getUserName() + "§r";
|
String name = "§r" + user.getUserName() + "§r";
|
||||||
if (user.getUserGroup() != UserGroup.Member) {
|
if (user.getUserGroup() != UserGroup.Member) {
|
||||||
name = user.getUserGroup().getColorCode() + user.getUserGroup().name() + " " + user.getUserName() + "§r";
|
name = user.getUserGroup().getColorCode() + user.getUserGroup().getChatPrefix() + " " + user.getUserName() + "§r";
|
||||||
}
|
}
|
||||||
String chatcolor = user.getUserGroup().getChatColorCode();
|
String chatcolor = user.getUserGroup().getChatColorCode();
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren