LunaChat v2.5.3 : Changed version number.
このコミットが含まれているのは:
1 親
33b2195065
コミット
11e7c0c681
50ファイル変更
+5003
-4990
検索条件に一致するファイルはありません
@@ -1,43 +1,43 @@
|
||||
/*
|
||||
* @author ucchy
|
||||
* @license LGPLv3
|
||||
* @copyright Copyright ucchy 2013
|
||||
*/
|
||||
package com.github.ucchyocean.lc.event;
|
||||
|
||||
import org.bukkit.event.Cancellable;
|
||||
|
||||
/**
|
||||
* 基底のキャンセル可能イベントクラス
|
||||
* @author ucchy
|
||||
*/
|
||||
public class LunaChatBaseCancellableEvent extends LunaChatBaseEvent implements Cancellable {
|
||||
|
||||
private boolean isCancelled;
|
||||
|
||||
/**
|
||||
* コンストラクタ
|
||||
* @param channelName チャンネル名
|
||||
*/
|
||||
public LunaChatBaseCancellableEvent(String channelName) {
|
||||
super(channelName);
|
||||
}
|
||||
|
||||
/**
|
||||
* イベントがキャンセルされたかどうかをかえす
|
||||
* @see org.bukkit.event.Cancellable#isCancelled()
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return isCancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* イベントをキャンセルするかどうかを設定する
|
||||
* @see org.bukkit.event.Cancellable#setCancelled(boolean)
|
||||
*/
|
||||
@Override
|
||||
public void setCancelled(boolean cancelled) {
|
||||
isCancelled = cancelled;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* @author ucchy
|
||||
* @license LGPLv3
|
||||
* @copyright Copyright ucchy 2013
|
||||
*/
|
||||
package com.github.ucchyocean.lc.event;
|
||||
|
||||
import org.bukkit.event.Cancellable;
|
||||
|
||||
/**
|
||||
* 基底のキャンセル可能イベントクラス
|
||||
* @author ucchy
|
||||
*/
|
||||
public class LunaChatBaseCancellableEvent extends LunaChatBaseEvent implements Cancellable {
|
||||
|
||||
private boolean isCancelled;
|
||||
|
||||
/**
|
||||
* コンストラクタ
|
||||
* @param channelName チャンネル名
|
||||
*/
|
||||
public LunaChatBaseCancellableEvent(String channelName) {
|
||||
super(channelName);
|
||||
}
|
||||
|
||||
/**
|
||||
* イベントがキャンセルされたかどうかをかえす
|
||||
* @see org.bukkit.event.Cancellable#isCancelled()
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return isCancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* イベントをキャンセルするかどうかを設定する
|
||||
* @see org.bukkit.event.Cancellable#setCancelled(boolean)
|
||||
*/
|
||||
@Override
|
||||
public void setCancelled(boolean cancelled) {
|
||||
isCancelled = cancelled;
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする