From bbfcacfe4c10907eb262093a6e88c069bf1b39d6 Mon Sep 17 00:00:00 2001 From: ucchy Date: Mon, 3 Aug 2020 23:23:15 +0900 Subject: [PATCH] LunaChat v3.0.9 : Modified some documents. --- pom.xml | 2 +- .../com/github/ucchyocean/lc3/LunaChat.java | 45 ++++++++++++++++++- src/main/resources/config.yml | 3 +- src/main/resources/config_ja.yml | 5 ++- 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 7293590..2ff3917 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.github.ucchyocean LunaChat - 3.0.8 + 3.0.9 A powerfull chat channel plugin with IME (Kana-Kanji conversion) support https://github.com/ucchyocean/LunaChat diff --git a/src/main/java/com/github/ucchyocean/lc3/LunaChat.java b/src/main/java/com/github/ucchyocean/lc3/LunaChat.java index d09226e..010efdd 100644 --- a/src/main/java/com/github/ucchyocean/lc3/LunaChat.java +++ b/src/main/java/com/github/ucchyocean/lc3/LunaChat.java @@ -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); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index e557114..36833fe 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -63,7 +63,8 @@ formatConstraint: ['%username','%msg'] # %color: Channel color # %displayname: Speaker display name # %player: Speaker ID -# %world: world name +# %server: Speaker's connection server name (valid when installed on BungeeCord side.) +# %world : World name # %prefix: prefix (replaced if Vault and Prefix/Suffix plugin are installed) # %suffix: suffix (replaced if Vault and Prefix/Suffix plugin are installed) # %date: date diff --git a/src/main/resources/config_ja.yml b/src/main/resources/config_ja.yml index 7cfe0eb..b8ba166 100644 --- a/src/main/resources/config_ja.yml +++ b/src/main/resources/config_ja.yml @@ -63,9 +63,10 @@ formatConstraint: ['%username', '%msg'] # %color : チャンネルカラー # %displayname : 発言者表示名 # %player : 発言者ID +# %server : 発言者の接続サーバー名(BungeeCord側に導入したときに有効です。) # %world : 発言したワールド名 -# %prefix : プレフィックス(VaultとPermissionsExが導入されている場合に置き換えられます) -# %suffix : サフィックス(VaultとPermissionsExが導入されている場合に置き換えられます) +# %prefix : プレフィックス(Vaultとパーミッション管理プラグインが導入されている場合に置き換えられます) +# %suffix : サフィックス(Vaultとパーミッション管理プラグインが導入されている場合に置き換えられます) # %date : 日付 # %time : 時刻 # %msg : 発言内容(Japanize変換された場合は、Japanize結果を含みます。)