-
Notifications
You must be signed in to change notification settings - Fork 9
gomeow edited this page Aug 1, 2013
·
3 revisions
For those of you who use maven, you may use this in your pom.xml right next to your bukkit info:
<repository>
<id>chester</id>
<url>http://ci.hawkfalcon.com/plugin/repository/everything/</url>
</repository>
<dependency>
<groupId>info.gomeow</groupId>
<artifactId>chester</artifactId>
<version>2.3.0</version>
</dependency>
Chester has two events. Hook into these events the same way you would with a bukkit event
This event is called whenever someone speaks a triggerword.
- getPlayer() returns the player who spoke the message to be logged
- getMessage() returns the message to be logged
- setMessage() will set the new message to be logged
- setCancelled() will set the cancellation state
- isCancelled() will return whether or not the event is cancelled
This event is called whenever chester is about to broadcast a message
- getRecipients() returns a set of the players to be broadcasted to. You can modify this list to change who hears the message
- getMessage() returns the message to be broadcasted
- setMessage() will set the new message to be broadcasted