LunaChat v2.6.11 : Fixed bug about issue #111.
このコミットが含まれているのは:
1 親
24850a1b12
コミット
d51040d70d
4ファイル変更
+5
-3
検索条件に一致するファイルはありません
@@ -54,7 +54,7 @@ public class Resources {
|
||||
if ( resources == null ) {
|
||||
initialize();
|
||||
}
|
||||
String def = defaultMessages.getString(key, "");
|
||||
String def = defaultMessages.getString(key);
|
||||
return Utility.replaceColorCode(resources.getString(key, def));
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ public class Utility {
|
||||
* @return 置き換え後の文字列
|
||||
*/
|
||||
public static String replaceColorCode(String source) {
|
||||
if ( source == null ) return null;
|
||||
return ChatColor.translateAlternateColorCodes('&', source);
|
||||
}
|
||||
|
||||
@@ -129,6 +130,7 @@ public class Utility {
|
||||
* @return 置き換え後の文字列
|
||||
*/
|
||||
public static String stripColor(String source) {
|
||||
if ( source == null ) return null;
|
||||
return ChatColor.stripColor(source);
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ public class HideCommand extends SubCommandAbst {
|
||||
}
|
||||
|
||||
// 指定されたコマンドが「/ch hide list」なら、リストを表示して終了
|
||||
if ( cname.equals("list") ) {
|
||||
if ( cname != null && cname.equals("list") ) {
|
||||
for ( String item : getHideInfoList(player) ) {
|
||||
player.sendMessage(item);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ errmsgAlreadyMuted: '指定されたプレイヤーは既にMuteリストに含
|
||||
errmsgAlreadyHided: 'このチャンネルは既に非表示になっています。'
|
||||
errmsgAlreadyHidedPlayer: 'このプレイヤーは既に非表示になっています。'
|
||||
errmsgAlreadyUnhided: 'このチャンネルは非表示になっていません。'
|
||||
errmsgAlreadyUnhidedplayer: 'このプレイヤーは非表示になっていません。'
|
||||
errmsgAlreadyUnhidedPlayer: 'このプレイヤーは非表示になっていません。'
|
||||
errmsgCannotJoinPersonal: '個人チャットチャンネルには参加できません。'
|
||||
errmsgNotModerator: 'あなたはモデレーターではないため、そのコマンドを実行できません。'
|
||||
errmsgNotBanned: '指定されたプレイヤーはBANリストに含まれていません。'
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする