Move DynmapWebChatEvent to API
This commit is contained in:
parent
9de3cf8751
commit
75681ea8b2
1 changed files with 0 additions and 31 deletions
|
|
@ -1,31 +0,0 @@
|
||||||
package org.dynmap;
|
|
||||||
import org.bukkit.event.Cancellable;
|
|
||||||
import org.bukkit.event.Event;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom bukkit event, corresponding to the receiving of a web-chat message from a web UI user
|
|
||||||
*/
|
|
||||||
public class DynmapWebChatEvent extends Event implements Cancellable {
|
|
||||||
private String source;
|
|
||||||
private String name;
|
|
||||||
private String message;
|
|
||||||
private boolean cancelled;
|
|
||||||
|
|
||||||
public DynmapWebChatEvent(String source, String name, String message) {
|
|
||||||
super("org.dynmap.DynmapWebChatEvent");
|
|
||||||
this.source = source;
|
|
||||||
this.name = name;
|
|
||||||
this.message = message;
|
|
||||||
this.cancelled = false;
|
|
||||||
}
|
|
||||||
public boolean isCancelled() { return cancelled; }
|
|
||||||
|
|
||||||
public void setCancelled(boolean cancel) { cancelled = cancel; }
|
|
||||||
|
|
||||||
public String getSource() { return source; }
|
|
||||||
|
|
||||||
public String getName() { return name; }
|
|
||||||
|
|
||||||
public String getMessage() { return message; }
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue