コミットを比較
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
|
|
55810cf084 | ||
|
|
bbfcacfe4c |
検索条件に一致するファイルはありません
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.github.ucchyocean</groupId>
|
||||
<artifactId>LunaChat</artifactId>
|
||||
<version>3.0.8</version>
|
||||
<version>3.0.9</version>
|
||||
<description>A powerfull chat channel plugin with IME (Kana-Kanji conversion) support</description>
|
||||
<url>https://github.com/ucchyocean/LunaChat</url>
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -3,3 +3,4 @@ main: com.github.ucchyocean.lc3.LunaChatBungee
|
||||
version: ${project.version}
|
||||
author: ucchy, YukiLeafX, LazyGon, tomo1560
|
||||
description: ${project.description}
|
||||
softDepends: [LuckPerms, BungeePerms]
|
||||
@@ -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
|
||||
|
||||
@@ -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結果を含みます。)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする