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.boolean
Checks 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
null
ifisAllowed()
.- Returns:
- Reason why the message should be blocked
-
getDisallowedText
Gets the disallowed text in the message that triggered the antispam.Will return
null
ifisAllowed()
.- Returns:
- Disallowed text in the message
-
getHighlightedMessage
Gets the message with highlighted disallowed text.Will return
null
ifisAllowed()
.- 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
-