Really fix clans chat this time

This commit is contained in:
Sam 2018-09-01 12:06:44 +01:00 committed by Alexander Meech
parent 48e8a7e451
commit 6cc2b96666

View File

@ -1063,13 +1063,8 @@ public class ClansManager extends MiniClientPlugin<ClientClan> implements IRelat
@EventHandler(ignoreCancelled = true) @EventHandler(ignoreCancelled = true)
public void handlePlayerChat(FormatPlayerChatEvent event) public void handlePlayerChat(FormatPlayerChatEvent event)
{ {
if (event.getChatChannel() != ChatChannel.PUBLIC) if (event.getChatChannel() == ChatChannel.COMMUNITY)
{ {
if (event.getChatChannel() == ChatChannel.TEAM)
{
event.setCancelled(true);
}
return; return;
} }