LunaChat v2.1.0 : fixed issue #31.
このコミットが含まれているのは:
1 親
bf0e3ce6ee
コミット
eecd13d566
6ファイル変更
+114
-15
検索条件に一致するファイルはありません
@@ -18,6 +18,8 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelCreateEvent;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelRemoveEvent;
|
||||
import com.github.ucchyocean.lc.japanize.ConvertTask;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
|
||||
/**
|
||||
* @author ucchy
|
||||
@@ -432,6 +434,22 @@ public class ChannelManager implements LunaChatAPI {
|
||||
saveTemplates();
|
||||
}
|
||||
|
||||
/**
|
||||
* Japanize変換を行う
|
||||
* @param message 変換するメッセージ
|
||||
* @param type 変換タイプ
|
||||
* @return 変換後のメッセージ
|
||||
*/
|
||||
@Override
|
||||
public String japanize(String message, JapanizeType type) {
|
||||
ConvertTask task = new ConvertTask(message, type, null, null, "%japanize");
|
||||
if ( task.runSync() ) {
|
||||
return task.getResult();
|
||||
} else {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定された名前がチャンネル名として使用可能かどうかを判定する
|
||||
* @param name 名前
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする