Added weather to json world output (hasStorm and isThundering)
This commit is contained in:
parent
c0479bff05
commit
bb45cc10cb
3 changed files with 6 additions and 0 deletions
|
|
@ -96,6 +96,8 @@ class JsonTimerTask extends TimerTask {
|
|||
|
||||
update.timestamp = current;
|
||||
update.servertime = world.getTime() % 24000;
|
||||
update.hasStorm = world.hasStorm();
|
||||
update.isThundering = world.isThundering();
|
||||
|
||||
Player[] players = plugin.playerList.getVisiblePlayers();
|
||||
update.players = new Client.Player[players.length];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue