ucchyocean / bukkitnicolivealert Goto Github PK
View Code? Open in Web Editor NEWNiconico Live Alert plugin for CraftBukkit.
Niconico Live Alert plugin for CraftBukkit.
CraftBukkit 1.8.x で、tellraw ではなく URL で通知されるので、 tellraw が適用されるように修正すること。
索子さんの放送をみていると、毎回通知が2個来ている。
特定の放送ツールを使用していると、枠取りが2重に行われているみたいで、通知が2つ来てしまうようだ。
原因は不明・・・
前回通知を実行した放送IDを覚えておき、次の通知が全く同じIDなら、通知を実行しないようにすることで対応する。
config.yml に、titleKeyword 設定を追加する。
titleKeywords 設定は、string array とする。
titleKeywords 設定が null(設定なし) または、空行列である場合は、従来どおりの通知を行う。
titleKeywords 設定がある場合は、AlertFoundEvent が発生した際に、titleKeywords に指定された文字列が存在する場合は通知を行い、存在しない場合は通知を行わない。
titleKeywords 設定は、OR 検索とする(いずれかのキーワードが引っかかれば、通知される)。
現在の実装は、各バージョンを使ってビルドしたクラスファイルを纏めているが、
ビルドに非常に手間がかかっており、またMinecraftのバージョンアップごとにリリースが必要になってしまうため、
そろそろ何らかの手を打ちたい。
具体的には、CraftBukkitのChatSerializerを呼び出していたところを、
Bukkit.dispatchCommand メソッドを使って /tellraw コマンドを直接呼び出して使用することで代替する。
この仕様変更により、/tellraw コマンドがまだ導入されていない Bukkit 1.7.2-R0.1 と Bukkit 1.7.2-R0.2 は動作しなくなるが、もうさすがにええやろ!感があるので、サポートバージョンから捨てる事にする。
CraftBukkitが停止しなくなるよ!
再現方法:
1. NicoLiveAlertを入れて、CraftBukkit を起動する。
2. 何らかの方法で、ソケット通信を強制切断させる。
例えば、PCをサスペンドしてから、復帰させる。
※ネットワークケーブルを抜いた場合などは、input stream の読み取りでExceptionが発生するようなので、問題なく停止できる。
3. CraftBukkit のコンソールで、stop を実行する。
NicoLiveAlert のDisable中に、CraftBukkitの停止処理が止まってしまい、そのまま動かなくなる。
フォーラムにていただいた要望。
http://forum.minecraftuser.jp/viewtopic.php?f=38&t=7768&sid=e57fdafc724637214bcccc7f15845c93&start=40#p280639
/nla list コマンドを追加し、過去のニコ生開始通知履歴を表示できるようにする。
仕様案:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.