mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2025-02-03 13:11:24 +01:00
Ignore private hc messages.
This commit is contained in:
parent
d558739877
commit
69b79c586e
@ -60,6 +60,10 @@ public class HeroChatListener implements Listener {
|
||||
ChatResult result = event.getResult();
|
||||
plugin.logDebug("HC Format: " + event.getFormat());
|
||||
plugin.logDebug("HC Result: " + event.getResult());
|
||||
if (plugin.heroPrivateChatFormat.equals(event.getFormat())) {
|
||||
plugin.logDebug("HC Private: TRUE");
|
||||
return;
|
||||
}
|
||||
|
||||
ChatColor chatColor = event.getChannel().getColor();
|
||||
Player player = chatter.getPlayer();
|
||||
|
@ -138,6 +138,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
defaultGroupSuffix,
|
||||
customTabPrefix,
|
||||
heroChatEmoteFormat,
|
||||
heroPrivateChatFormat,
|
||||
listFormat,
|
||||
listSeparator,
|
||||
listPlayer,
|
||||
@ -1540,6 +1541,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
logError(ex.getMessage());
|
||||
}
|
||||
heroChatEmoteFormat = heroConfig.getString("format.emote", "");
|
||||
heroPrivateChatFormat = heroConfig.getString("format.private-message");
|
||||
} else {
|
||||
hookList.add(hookFormat(PL_HEROCHAT, false));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user