Add setMessage method to IRCMessageEent.

This commit is contained in:
cnaude 2016-01-02 09:58:43 -07:00
parent c1ea5c8244
commit 8411d2178c

View File

@ -27,7 +27,7 @@ import org.bukkit.event.HandlerList;
public class IRCMessageEvent extends Event {
private static final HandlerList HANDLERS = new HandlerList();
private final String message;
private String message;
private final String permission;
/**
@ -72,4 +72,13 @@ public class IRCMessageEvent extends Event {
public static HandlerList getHandlerList() {
return HANDLERS;
}
/**
* Change the IRC message being sent to the game
*
* @param message the message from IRC
*/
public void setMessage(String message) {
this.message = message;
}
}