LunaChat v3.0.7 : Fixed LunaChatConfig class.

このコミットが含まれているのは:
ucchy committed 2020-07-16 23:43:41 +09:00
1 親 f9df5353c9
コミット 978100ab02
2ファイル変更
+15 -2

検索条件に一致するファイルはありません

+14 -1
ファイルの表示
@@ -148,6 +148,9 @@ public class LunaChatConfig {
// === 以下、BungeeCord用設定 ===
/** Bungeeパススルーモード */
private boolean bungeePassThroughMode;
/**
* コンストラクタ
* @param dataFolder コンフィグ格納フォルダ
@@ -178,7 +181,7 @@ public class LunaChatConfig {
lang = config.getString("lang", "en");
enableChannelChat = config.getBoolean("enableChannelChat", true);
playerChatEventListenerPriority
= getEventPriority(config.getString("playerChatEventListenerPriority"), EventPriority.HIGH);
= getEventPriority(config.getString("playerChatEventListenerPriority"), EventPriority.HIGHEST);
noJoinAsGlobal = config.getBoolean("noJoinAsGlobal", true);
loggingChat = config.getBoolean("loggingChat", true);
displayChatOnConsole = config.getBoolean("displayChatOnConsole", true);
@@ -258,6 +261,8 @@ public class LunaChatConfig {
noneJapanizeMarker = config.getString("noneJapanizeMarker", "$");
japanizeWait = config.getInt("japanizeWait", 1);
bungeePassThroughMode = config.getBoolean("bungeePassThroughMode", false);
// globalチャンネルが、使用可能なチャンネル名かどうかを調べる
if ( globalChannel != null && !globalChannel.equals("") &&
!globalChannel.matches("[0-9a-zA-Z\\-_]{1,20}") ) {
@@ -577,6 +582,14 @@ public class LunaChatConfig {
return enableNormalChatClickable;
}
/**
* Bungeeパススルーモードかどうかを返す
* @return bungeePassThroughMode
*/
public boolean isBungeePassThroughMode() {
return bungeePassThroughMode;
}
/**
* 指定された文字列から、対応するEventPriorityを返す。
* @param value 文字列