Don't filter the message if cancelled
This commit is contained in:
parent
3e4593931c
commit
8053b9b90f
@ -876,7 +876,7 @@ public class Chat extends MiniPlugin
|
|||||||
event.getRecipients().forEach(player -> player.spigot().sendMessage(formatted));
|
event.getRecipients().forEach(player -> player.spigot().sendMessage(formatted));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void filterMessage(FormatPlayerChatEvent event)
|
public void filterMessage(FormatPlayerChatEvent event)
|
||||||
{
|
{
|
||||||
if (event.isFiltered())
|
if (event.isFiltered())
|
||||||
|
Loading…
Reference in New Issue
Block a user