use of gg.projecteden.utils.DiscordId.TextChannel in project Nexus by ProjectEdenGG.
the class IngameBridgeListener method onChannelChat.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onChannelChat(PublicChatEvent event) {
TextChannel discordTextChannel = event.getChannel().getDiscordTextChannel();
if (discordTextChannel == null)
return;
Player player = event.getChatter().getOnlinePlayer();
DiscordUser user = new DiscordUserService().get(player);
RoleManager.update(user);
Discord.send(user.getBridgeName() + " **>** " + discordize(parseMentions(event.getMessage())), discordTextChannel);
}
Aggregations