make the : be part of the username aswell

This commit is contained in:
dowoge 2023-07-02 21:41:35 -04:00
parent 5f9b792b50
commit 3e86d00f39
No known key found for this signature in database
GPG Key ID: A868F67EA0425DD8

View File

@ -20,7 +20,7 @@ public class DiscordMessageEvent extends ListenerAdapter {
User author = event.getAuthor(); User author = event.getAuthor();
String message = event.getMessage().getContentStripped(); String message = event.getMessage().getContentStripped();
if (event.isFromGuild() && !author.isBot() && event.getGuildChannel().getId().equals(config.getValue("discordRelayChannel").toString())) { 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);
} }
} }
} }