mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Add setMessage method to IRCMessageEent.
This commit is contained in:
parent
c1ea5c8244
commit
8411d2178c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user