make the : be part of the username aswell
This commit is contained in:
parent
5f9b792b50
commit
3e86d00f39
@ -20,7 +20,7 @@ public class DiscordMessageEvent extends ListenerAdapter {
|
||||
User author = event.getAuthor();
|
||||
String message = event.getMessage().getContentStripped();
|
||||
if (event.isFromGuild() && !author.isBot() && event.getGuildChannel().getId().equals(config.getValue("discordRelayChannel").toString())) {
|
||||
plugin.getServer().broadcastMessage(ChatColor.BLUE + "[DISCORD] " + ChatColor.GRAY + author.getEffectiveName() + ChatColor.WHITE + ": " + message);
|
||||
plugin.getServer().broadcastMessage(ChatColor.BLUE + "[DISCORD] " + ChatColor.GRAY + author.getEffectiveName() + ": " + ChatColor.WHITE + message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user