Closed Kiteflow closed 3 years ago
Yes, there is PreRuleMatchEvent that is fired to check rules, you can listen to that and cancel it
Sorry for reopening this but this also seems to cancel checking messages via the API. Is there a way to block the plugin checking them but also manually checking them?
You can manually check the message using ChatControlAPI#checkMessage
This also appears to fire the prerulematchevent though
Yeah that's intended behavior.
Is there anyway to stop it, as I am trying to only check messages via the API. Or is it impossible
Not right now sorry, but you could set the player an invisible metadata and then ignore said event if the metadata are present.
make sure to remove them right after the method
Hello, I'm currently using a custom chat plugin, and am wondering whether it's possible to cancel checking messages via the API? I'm currently checking them with the API, but for certain things (Advertisements) it's checking them twice.
Thanks