Events
ModuleTriggerEvent
ModuleTriggerEvent// get the violation/detection type
APIViolationType getType()
// get the context in which this event was triggered from (chat, command, etc)
APITriggerContext getContext()
// get the player who triggered this event
Player getPlayer()
// get the message before running through the module
String getOldContent()
// get the message after ran through the module
String getNewContent()
// get return the blocked content
String getBlockedContent()
// sets whether the event is cancelled
void setCancelled(boolean)
// returns whether the event is cancelled
boolean isCancelled()Violation types / supported modules
Context types
Code examples
Last updated