mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
ok codacy
This commit is contained in:
parent
b9606fa0e3
commit
9d131f0f24
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user