Skip to content
gomeow edited this page Aug 1, 2013 · 3 revisions

Maven

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>

Events

Chester has two events. Hook into these events the same way you would with a bukkit event

ChesterLogEvent

This event is called whenever someone speaks a triggerword.

Methods:

  • 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

ChesterBroadcastEvent

This event is called whenever chester is about to broadcast a message

Methods:

  • 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

Clone this wiki locally