Class AntispamResult
java.lang.Object
me.remigio07.chatplugin.api.server.chat.antispam.AntispamResult
Represents the result of
AntispamManager.check(ChatPluginServerPlayer, String, List)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the disallowed text in the message that triggered the antispam.Gets the message with highlighted disallowed text.Gets the reason why the message should be blocked.booleanChecks if the message is allowed by the antispam.
-
Constructor Details
-
AntispamResult
public AntispamResult()
-
-
Method Details
-
getReason
Gets the reason why the message should be blocked.Will return
nullifisAllowed().- Returns:
- Reason why the message should be blocked
-
getDisallowedText
Gets the disallowed text in the message that triggered the antispam.Will return
nullifisAllowed().- Returns:
- Disallowed text in the message
-
getHighlightedMessage
Gets the message with highlighted disallowed text.Will return
nullifisAllowed().- Returns:
- Message with highlighted disallowed text
-
isAllowed
public boolean isAllowed()Checks if the message is allowed by the antispam.- Returns:
- Whether the message is allowed
-