LunaChat v2.6.11 : Fixed issue #110.

このコミットが含まれているのは:
ucchy committed 2014-10-19 18:22:22 +09:00
1 親 ef864c1fc1
コミット 4733ae7e88
3ファイル変更
+25 -1

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

+12
ファイルの表示
@@ -8,6 +8,9 @@ package com.github.ucchyocean.lc.event;
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
@@ -35,9 +38,18 @@ public abstract class LunaChatBaseEvent extends Event {
}
/**
* チャンネル名を取得する
* @return チャンネル名
*/
public String getChannelName() {
return channelName;
}
/**
* チャンネルを取得する
* @return チャンネル
*/
public Channel getChannel() {
return LunaChat.getInstance().getLunaChatAPI().getChannel(channelName);
}
}
+12
ファイルの表示
@@ -7,6 +7,8 @@ package com.github.ucchyocean.lc.event;
import org.bukkit.command.CommandSender;
import com.github.ucchyocean.lc.channel.Channel;
/**
* チャンネル作成イベント
* @author ucchy
@@ -35,4 +37,14 @@ public class LunaChatChannelCreateEvent extends LunaChatBaseCancellableEvent {
public CommandSender getSender() {
return sender;
}
/**
* @deprecated チャンネル作成イベントは、チャンネルを作成する前に呼び出されるので、
* このメソッドの戻り値は必ずnullになります。
* @see com.github.ucchyocean.lc.event.LunaChatBaseEvent#getChannel()
*/
@Override
public Channel getChannel() {
return super.getChannel();
}
}