Fix erroneous cancellation

Signed-off-by: Etzelia <etzelia@hotmail.com>
discord
Etzelia 2020-06-21 22:37:52 -05:00
parent 127aeb53b2
commit e5a6d7ecc6
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,6 @@ public class DiscordSRVListener {
@Subscribe
public void onDiscordMessage(DiscordGuildMessagePreProcessEvent event) {
event.setCancelled(true);
if (DeluxeGroups.getDatabase().groupExists(event.getChannel().getName())) {
DeluxeGroup group = DeluxeGroups.getDatabase().getGroup(event.getChannel().getName());
String format = plugin.getConfig().getString("dtm", "[DISCORD | <group>] <player> > <message>");
@ -38,6 +37,7 @@ public class DiscordSRVListener {
replace("<author>", event.getAuthor().getName());
chat = ChatColor.translateAlternateColorCodes('&', chat);
group.sendMessage(chat);
event.setCancelled(true);
}
}