LunaChat v2.0.0 : Fixed issue #19.

このコミットが含まれているのは:
ucchyocean committed 2013-05-23 00:23:49 +09:00
1 親 4b783210af
コミット 7606240170
11ファイル変更
+288 -24

検索条件に一致するファイルはありません

+50
ファイルの表示
@@ -0,0 +1,50 @@
/*
* @author ucchy
* @license GPLv3
* @copyright Copyright ucchy 2013
*/
package com.github.ucchyocean.lc.event;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
/**
* @author ucchy
* 基底イベントクラス
*/
public abstract class LunaChatBaseEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean isCancelled;
protected String channelName;
public LunaChatBaseEvent(String channelName) {
this.channelName = channelName;
}
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public boolean isCancelled() {
return isCancelled;
}
@Override
public void setCancelled(boolean cancelled) {
isCancelled = cancelled;
}
/**
* @return チャンネル名
*/
public String getChannelName() {
return channelName;
}
}