LunaChat v3-k2 : BungeeCord implementation. (WIP)

このコミットが含まれているのは:
ucchy committed 2020-05-29 22:56:30 +09:00
1 親 330fb0aaab
コミット 6202f00729
98ファイル変更
+1149 -715

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

-57
ファイルの表示
@@ -1,57 +0,0 @@
/*
* @author ucchy
* @license LGPLv3
* @copyright Copyright ucchy 2020
*/
package com.github.ucchyocean.lc.event;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.github.ucchyocean.lc.LunaChat;
import com.github.ucchyocean.lc.channel.Channel;
/**
* 基底イベントクラス
* @author ucchy
*/
public abstract class LunaChatBaseEvent extends Event {
private static final HandlerList handlers = new HandlerList();
protected String channelName;
/**
* コンストラクタ
* @param channelName チャンネル名
*/
public LunaChatBaseEvent(String channelName) {
super(!Bukkit.isPrimaryThread());
this.channelName = channelName;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
/**
* チャンネル名を取得する
* @return チャンネル名
*/
public String getChannelName() {
return channelName;
}
/**
* チャンネルを取得する
* @return チャンネル
*/
public Channel getChannel() {
return LunaChat.getAPI().getChannel(channelName);
}
}