LunaChat v3-k2 : Implement Backward Compatibility. (WIP)
このコミットが含まれているのは:
1 親
a08c043055
コミット
172e64aa50
27ファイル変更
+2364
-24
検索条件に一致するファイルはありません
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* @author ucchy
|
||||
* @license LGPLv3
|
||||
* @copyright Copyright ucchy 2013
|
||||
*/
|
||||
package com.github.ucchyocean.lc.event;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* チャンネル作成イベント
|
||||
* @author ucchy
|
||||
*/
|
||||
public class LunaChatChannelCreateEvent extends LunaChatBaseCancellableEvent {
|
||||
|
||||
private CommandSender sender;
|
||||
|
||||
public LunaChatChannelCreateEvent(String channelName, CommandSender sender) {
|
||||
super(channelName);
|
||||
this.sender = sender;
|
||||
}
|
||||
|
||||
/**
|
||||
* 作成するチャンネルのチャンネル名を上書き設定する
|
||||
* @param channelName 設定するチャンネル名
|
||||
*/
|
||||
public void setChannelName(String channelName) {
|
||||
this.channelName = channelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* チャンネルを作成した人を取得する。
|
||||
* @return チャンネルを作成したCommandSender
|
||||
*/
|
||||
public CommandSender getSender() {
|
||||
return sender;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated チャンネル作成イベントは、チャンネルを作成する前に呼び出されるので、
|
||||
* このメソッドの戻り値は必ずnullになります。
|
||||
* @see com.github.ucchyocean.lc.event.LunaChatBaseEvent#getChannel()
|
||||
*/
|
||||
@Override
|
||||
public Channel getChannel() {
|
||||
return super.getChannel();
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする