com.github.ucchyocean.lc.channel
クラス ChannelImpl

java.lang.Object
  上位を拡張 com.github.ucchyocean.lc.channel.Channel
      上位を拡張 com.github.ucchyocean.lc.channel.ChannelImpl
すべての実装されたインタフェース:
org.bukkit.configuration.serialization.ConfigurationSerializable

public class ChannelImpl
extends Channel

チャンネルの実装クラス

作成者:
ucchy

メソッドの概要
 void chat(ChannelPlayer player, String message)
          このチャットに発言をする
 void chatFromOtherSource(String player, String source, String message)
          ほかの連携先などから、このチャットに発言する
 void checkExpires()
          期限付きBanや期限付きMuteをチェックし、期限が切れていたら解除を行う
 ArrayList<String> getInfo(boolean forModerator)
          チャンネル情報を返す
 ArrayList<String> getLog(String player, String filter, String date, boolean reverse)
          ログファイルを読み込んで、ログデータを取得する
 void sendMessage(ChannelPlayer player, String message, String format, boolean sendDynmap, String name)
          メッセージを表示します。
 
クラス com.github.ucchyocean.lc.channel.Channel から継承されたメソッド
addMember, addModerator, deserialize, getAlias, getBanExpires, getBanned, getChatRange, getColorCode, getDescription, getFormat, getHided, getJapanizeType, getMembers, getModerator, getMuted, getMuteExpires, getName, getOnlineNum, getPassword, getPrivateMessageTo, getTotalNum, hasModeratorPermission, isAllowCC, isBroadcastChannel, isForceJoinChannel, isGlobalChannel, isPersonalChat, isVisible, isWorldRange, removeMember, removeModerator, save, serialize, setAlias, setAllowCC, setBroadcast, setChatRange, setColorCode, setDescription, setFormat, setJapanizeType, setPassword, setPrivateMessageTo, setVisible, setWorldRange
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

chat

public void chat(ChannelPlayer player,
                 String message)
このチャットに発言をする

定義:
クラス Channel 内の chat
パラメータ:
player - 発言をするプレイヤー
message - 発言をするメッセージ

chatFromOtherSource

public void chatFromOtherSource(String player,
                                String source,
                                String message)
ほかの連携先などから、このチャットに発言する

定義:
クラス Channel 内の chatFromOtherSource
パラメータ:
player - プレイヤー名
source - 連携元を判別する文字列
message - メッセージ

sendMessage

public void sendMessage(ChannelPlayer player,
                        String message,
                        String format,
                        boolean sendDynmap,
                        String name)
メッセージを表示します。指定したプレイヤーの発言として処理されます。

定義:
クラス Channel 内の sendMessage
パラメータ:
player - プレイヤー(ワールドチャット、範囲チャットの場合は必須です)
message - メッセージ
format - フォーマット
sendDynmap - dynmapへ送信するかどうか
name - 発言者名

getInfo

public ArrayList<String> getInfo(boolean forModerator)
チャンネル情報を返す

定義:
クラス Channel 内の getInfo
パラメータ:
forModerator - モデレータ向けの情報を含めるかどうか
戻り値:
チャンネル情報

getLog

public ArrayList<String> getLog(String player,
                                String filter,
                                String date,
                                boolean reverse)
ログファイルを読み込んで、ログデータを取得する

定義:
クラス Channel 内の getLog
パラメータ:
player - プレイヤー名、フィルタしないならnullを指定すること
filter - フィルタ、フィルタしないならnullを指定すること
date - 日付、今日のデータを取得するならnullを指定すること
reverse - 逆順取得
戻り値:
ログデータ

checkExpires

public void checkExpires()
期限付きBanや期限付きMuteをチェックし、期限が切れていたら解除を行う

定義:
クラス Channel 内の checkExpires


Copyright © 2016. All rights reserved.