ucchyocean / bukkitcurrentweather Goto Github PK
View Code? Open in Web Editor NEW実際の地域の天気と時刻を、CraftBukkitのワールドへ同期するプラグイン。原作はKeBiN氏
実際の地域の天気と時刻を、CraftBukkitのワールドへ同期するプラグイン。原作はKeBiN氏
ときどき、天気が同期されずに変わってしまうことがある。
現実では晴れなのに、サーバー起動時は同期されて晴れになるが、そのまま放置すると20分以内に雨が降りだしたりすることがある。
world.setWeatherDuration(Integer.MAX_VALUE);
world.setThunderDuration(Integer.MAX_VALUE);
を実行しているが、これらのAPIで Interger.MAX_VALUE (= 約21億) の受付をしているのかどうか、不明である。
org.bukkit.command.defaults.WeatherCommand では、指定可能な最大値として 1,000,000秒 (= 20,000,000ticks = 約11日間) が設定されているので、BukkitCurrentWeatherでも同様に、最大値として 20,000,000ticks を設定するように変更する。
町名を、messages.yml に記載の内容で置き換えして表示できるようにする
コンフィグの intervalTicksSyncWeater に設定可能な値は、現状自由になっているが、
あまりに小さい値を設定して連続でOpenWeatherMapへアクセスされても困るので、
最小値 12000ticks (= 10分) を設定する。
intervalTicksSyncWeater に、12000以下の数値を指定された場合は、自動的に12000へ変更する。
2015年10月9日に、OpenWeatherMapが更新されたらしく、新しいAPIを利用しないと動作しなくなってしまっていた。
新しいAPIを調査して、動作するように対応する。
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.