LunaChat v2.6.11 : Fixed bug about issue #111.
このコミットが含まれているのは:
1 親
24850a1b12
コミット
f7d710c35e
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);
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする