Use the API!
The plugin provides an API that you can use. For now it only contains events that are fired when a message is censored or deleted.
Importing the API
<repository>
<id>synkdev-repo-releases</id>
<name>SynkDev Repository</name>
<url>https://maven.synkdev.cc/releases</url>
</repository>
<dependency>
<groupId>cc.synkdev</groupId>
<artifactId>ChatWatchdogAPI</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>Maven
maven {
url "https://maven.synkdev.cc/releases"
}
implementation "cc.synkdev:ChatWatchdogAPI:1.0"Gradle
Usage examples
With Spigot: Here I am sending to all OP players that the player has swore in chat.
With BungeeCord: Here I am sending a message to all players on the proxy when a message gets deleted (please don't do that)
An example use case would be to interact with a punishment plugin to punish the player when they get censored.
Last updated