コミットを比較
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
|
|
f00d978942 | ||
|
|
e719e9e3c8 | ||
|
|
d41b0de7e1 | ||
|
|
b96d9566d0 | ||
|
|
1e384e9043 | ||
|
|
7c28c02736 |
検索条件に一致するファイルはありません
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.github.ucchyocean</groupId>
|
||||
<artifactId>LunaChat</artifactId>
|
||||
<version>3.0.14</version>
|
||||
<version>3.0.16</version>
|
||||
<description>A powerfull chat channel plugin with IME (Kana-Kanji conversion) support</description>
|
||||
<url>https://github.com/ucchyocean/LunaChat</url>
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
<dependency>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.1.145</version>
|
||||
<version>2.1.146</version>
|
||||
<optional>true</optional>
|
||||
<scope>provided</scope>
|
||||
<exclusions>
|
||||
@@ -246,7 +246,7 @@
|
||||
<dependency>
|
||||
<groupId>net.alpenblock</groupId>
|
||||
<artifactId>BungeePerms</artifactId>
|
||||
<version>4.0-dev-112</version>
|
||||
<version>4.0-dev-114</version>
|
||||
<optional>true</optional>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
@@ -145,6 +145,9 @@ public class LunaChatConfig {
|
||||
/** ノンジャパナイズマーカー これが発言の頭に入っている場合は、一時的にjapanizeを実行しない */
|
||||
private String noneJapanizeMarker;
|
||||
|
||||
/** プレイヤーのJapanize変換を、デフォルトでオンにするかオフにするかを設定する。 */
|
||||
private boolean japanizePlayerDefault;
|
||||
|
||||
/** 通常チャットで、JapanizeDisplayLine=2のとき、Japanize変換したあと表示するまでのウェイト(tick)
|
||||
* 隠し設定。 */
|
||||
private int japanizeWait;
|
||||
@@ -264,6 +267,7 @@ public class LunaChatConfig {
|
||||
japanizeLine2Format = config.getString("japanizeLine2Format", "&6[JP] %japanize");
|
||||
japanizeIgnorePlayerName = config.getBoolean("japanizeIgnorePlayerName", true);
|
||||
noneJapanizeMarker = config.getString("noneJapanizeMarker", "$");
|
||||
japanizePlayerDefault = config.getBoolean("japanizePlayerDefault", true);
|
||||
japanizeWait = config.getInt("japanizeWait", 1);
|
||||
|
||||
bungeePassThroughMode = config.getBoolean("bungeePassThroughMode", false);
|
||||
@@ -563,6 +567,14 @@ public class LunaChatConfig {
|
||||
return noneJapanizeMarker;
|
||||
}
|
||||
|
||||
/**
|
||||
* プレイヤーのJapanize変換を、デフォルトでオンにするかオフにするかを設定する。
|
||||
* @return japanizePlayerDefault
|
||||
*/
|
||||
public boolean isJapanizePlayerDefault() {
|
||||
return japanizePlayerDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通常チャットで、JapanizeDisplayLine=2のとき、Japanize変換したあと表示するまでのウェイト(tick)
|
||||
* @return japanizeWaitを返す
|
||||
|
||||
@@ -70,6 +70,7 @@ public class BungeeEventListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
public void onAsyncPlayerChatLowest(ChatEvent event) {
|
||||
if ( event.isCancelled() ) return;
|
||||
if ( matchesEventPriority(EventPriority.LOWEST) ) {
|
||||
processChatEvent(event);
|
||||
}
|
||||
@@ -81,6 +82,7 @@ public class BungeeEventListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority=EventPriority.LOW)
|
||||
public void onAsyncPlayerChatLow(ChatEvent event) {
|
||||
if ( event.isCancelled() ) return;
|
||||
if ( matchesEventPriority(EventPriority.LOW) ) {
|
||||
processChatEvent(event);
|
||||
}
|
||||
@@ -92,6 +94,7 @@ public class BungeeEventListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority=EventPriority.NORMAL)
|
||||
public void onAsyncPlayerChatNormal(ChatEvent event) {
|
||||
if ( event.isCancelled() ) return;
|
||||
if ( matchesEventPriority(EventPriority.NORMAL) ) {
|
||||
processChatEvent(event);
|
||||
}
|
||||
@@ -103,6 +106,7 @@ public class BungeeEventListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority=EventPriority.HIGH)
|
||||
public void onAsyncPlayerChatHigh(ChatEvent event) {
|
||||
if ( event.isCancelled() ) return;
|
||||
if ( matchesEventPriority(EventPriority.HIGH) ) {
|
||||
processChatEvent(event);
|
||||
}
|
||||
@@ -114,6 +118,7 @@ public class BungeeEventListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority=EventPriority.HIGHEST)
|
||||
public void onAsyncPlayerChatHighest(ChatEvent event) {
|
||||
if ( event.isCancelled() ) return;
|
||||
if ( matchesEventPriority(EventPriority.HIGHEST) ) {
|
||||
processChatEvent(event);
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ public class ChannelManager implements LunaChatAPI {
|
||||
@Override
|
||||
public boolean isPlayerJapanize(String playerName) {
|
||||
if ( !japanize.containsKey(playerName) ) {
|
||||
return true;
|
||||
return LunaChat.getConfig().isJapanizePlayerDefault();
|
||||
}
|
||||
return japanize.get(playerName);
|
||||
}
|
||||
|
||||
@@ -203,10 +203,15 @@ public class ClickableFormat {
|
||||
String text = matcher.group(2);
|
||||
String hover = matcher.group(3);
|
||||
String command = matcher.group(4);
|
||||
TextComponent tc = new TextComponent(text);
|
||||
TextComponent tc = new TextComponent(TextComponent.fromLegacyText(text));
|
||||
if ( !hover.isEmpty() ) {
|
||||
tc.setHoverEvent(new HoverEvent(
|
||||
HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hover).create()));
|
||||
@SuppressWarnings("deprecation")
|
||||
HoverEvent event = new HoverEvent(
|
||||
HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hover).create());
|
||||
// bungeecord-chat v1.16-R0.3 style.
|
||||
// HoverEvent event = new HoverEvent(
|
||||
// HoverEvent.Action.SHOW_TEXT, new Text(hover));
|
||||
tc.setHoverEvent(event);
|
||||
}
|
||||
if ( type.equals("RUN_COMMAND") ) {
|
||||
tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, command));
|
||||
|
||||
@@ -216,6 +216,8 @@ japanizeIgnorePlayerName: true
|
||||
# If this is at the beginning of your remark, do not temporarily perform Japanize conversion.
|
||||
noneJapanizeMarker: '$'
|
||||
|
||||
# Sets whether player's Japanize conversion on or off by default.
|
||||
japanizePlayerDefault: true
|
||||
|
||||
|
||||
# -------------------- BungeeCord settings --------------------
|
||||
|
||||
@@ -225,6 +225,8 @@ japanizeIgnorePlayerName: true
|
||||
# これが発言の頭に入っている場合は、一時的にJapanize変換を実行しない。
|
||||
noneJapanizeMarker: '$'
|
||||
|
||||
# プレイヤーのJapanize変換を、デフォルトでオンにするかオフにするかを設定する。
|
||||
japanizePlayerDefault: true
|
||||
|
||||
|
||||
# -------------------- BungeeCord設定 --------------------
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする