From 8411d2178c585b0d31e644dd98850e1fcd6e9935 Mon Sep 17 00:00:00 2001 From: cnaude Date: Sat, 2 Jan 2016 09:58:43 -0700 Subject: [PATCH] Add setMessage method to IRCMessageEent. --- .../com/cnaude/purpleirc/Events/IRCMessageEvent.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cnaude/purpleirc/Events/IRCMessageEvent.java b/src/main/java/com/cnaude/purpleirc/Events/IRCMessageEvent.java index eaf5687..3db7156 100644 --- a/src/main/java/com/cnaude/purpleirc/Events/IRCMessageEvent.java +++ b/src/main/java/com/cnaude/purpleirc/Events/IRCMessageEvent.java @@ -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; + } }