ok codacy

This commit is contained in:
speed 2020-12-26 19:11:15 -05:00
parent b9606fa0e3
commit 9d131f0f24

View File

@ -27,9 +27,7 @@ public class DiscordToAdminChatListener extends ListenerAdapter
public void onMessageReceived(MessageReceivedEvent event) public void onMessageReceived(MessageReceivedEvent event)
{ {
String chat_channel_id = ConfigEntry.DISCORD_ADMINCHAT_CHANNEL_ID.getString(); String chat_channel_id = ConfigEntry.DISCORD_ADMINCHAT_CHANNEL_ID.getString();
if (event.getMember() != null && !chat_channel_id.isEmpty() && event.getChannel().getId().equals(chat_channel_id)) if (event.getMember() != null && !chat_channel_id.isEmpty() && event.getChannel().getId().equals(chat_channel_id) && !event.getAuthor().getId().equals(event.getJDA().getSelfUser().getId()))
{
if (!event.getAuthor().getId().equals(event.getJDA().getSelfUser().getId()))
{ {
Member member = event.getMember(); Member member = event.getMember();
String tag = dtml.getDisplay(member); String tag = dtml.getDisplay(member);
@ -88,7 +86,6 @@ public class DiscordToAdminChatListener extends ListenerAdapter
FLog.info(message.toString()); FLog.info(message.toString());
} }
} }
}
public static net.md_5.bungee.api.ChatColor getColor(Displayable display) public static net.md_5.bungee.api.ChatColor getColor(Displayable display)
{ {