LunaChat v3.0.9 : Modified some documents.
このコミットが含まれているのは:
1 親
9912870fba
コミット
bbfcacfe4c
4ファイル変更
+50
-5
検索条件に一致するファイルはありません
@@ -15,61 +15,104 @@ import com.github.ucchyocean.lc3.event.EventSenderInterface;
|
||||
*/
|
||||
public class LunaChat {
|
||||
|
||||
/** Bukkit->BungeeCord チャット発言内容の転送に使用するプラグインメッセージチャンネル名 */
|
||||
/** Bukkit→BungeeCord チャット発言内容の転送に使用するプラグインメッセージチャンネル名 */
|
||||
public static final String PMC_MESSAGE = "lunachat:message";
|
||||
|
||||
private static PluginInterface instance;
|
||||
private static LunaChatMode mode;
|
||||
private static EventSenderInterface esender;
|
||||
|
||||
// LunaChatに実行元プラグインクラスを設定する
|
||||
static void setPlugin(PluginInterface plugin) {
|
||||
instance = plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのプラグインクラスを取得する
|
||||
* @return プラグインクラス、BukkitモードならLunaChatBukkit、BungeeCordモードならLunaChatBungee
|
||||
*/
|
||||
public static PluginInterface getPlugin() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
// LunaChatの実行モードを設定する
|
||||
static void setMode(LunaChatMode _mode) {
|
||||
mode = _mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatの実行モードを取得する
|
||||
* @return 実行モード(BUKKIT or BUNGEE)
|
||||
*/
|
||||
public static LunaChatMode getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
// LunaChatのイベント実行クラスを取得する
|
||||
static void setEventSender(EventSenderInterface eventSender) {
|
||||
esender = eventSender;
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのイベント実行クラスを取得する
|
||||
* @return イベント実行クラス
|
||||
*/
|
||||
public static EventSenderInterface getEventSender() {
|
||||
return esender;
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのデータ格納フォルダを取得する
|
||||
* @return データ格納フォルダ
|
||||
*/
|
||||
public static File getDataFolder() {
|
||||
return instance.getDataFolder();
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのJarファイルを取得する
|
||||
* @return Jarファイル
|
||||
*/
|
||||
public static File getPluginJarFile() {
|
||||
return instance.getPluginJarFile();
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのコンフィグを取得する
|
||||
* @return コンフィグ
|
||||
*/
|
||||
public static LunaChatConfig getConfig() {
|
||||
return instance.getLunaChatConfig();
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのAPIを取得する
|
||||
* @return API
|
||||
*/
|
||||
public static LunaChatAPI getAPI() {
|
||||
return instance.getLunaChatAPI();
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatの通常チャットロガーを取得する
|
||||
* @return 通常チャットロガー
|
||||
*/
|
||||
public static LunaChatLogger getNormalChatLogger() {
|
||||
return instance.getNormalChatLogger();
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatのUUIDキャッシュを取得する
|
||||
* @return UUIDキャッシュ
|
||||
*/
|
||||
public static UUIDCacheData getUUIDCacheData() {
|
||||
return instance.getUUIDCacheData();
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatで非同期タスクを実行する
|
||||
* @param task 実行するタスク
|
||||
*/
|
||||
public static void runAsyncTask(Runnable task) {
|
||||
instance.runAsyncTask(task);
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする