realweather/src/main/resources/config.yml

75 lines
2.2 KiB
YAML
Raw Normal View History

2022-04-23 18:49:02 +02:00
weather:
# In which worlds weather control is allowed?
# If a world doesn't exist nothing will happen
worlds:
- world
- second_world
- third_world
2022-04-25 19:34:22 +02:00
# "point" - static location
# "player" - player's location (fake weather)
# "map" - world resembles a real-world globe
2022-04-23 18:49:02 +02:00
source: point
point:
latitude: 41.84201
longitude: -89.485937
2022-04-24 11:49:22 +02:00
player:
geolite2_accountId: 710438
geolite2_apiKey: 'qLeseHp4QNQcqRGn'
2022-04-25 19:34:22 +02:00
map:
# Man I've really suffered while working on this one (i hate maths)
# Info:
# Valid latitude range: -90 to 90
# Valid longitude range: -180 to 180
# 1 degree of latitude and longitude is about 111 km
# The defaults here assume 1 block = ~1 km
# Latitude scale, 1 block = <scale> degrees
scale_lat: 0.009
# Longitude scale, 1 block = <scale> degrees
scale_lon: 0.009
# What to do if player exceeds the range specified above
# 1 - do nothing (clamp to nearest allowed value)
# 2 - wrap the number
# for example; if the calculated player's latitude is 94 degrees (bad), it'll be converted to -86 degrees (good)
on_exceed: 2
2022-04-23 18:49:02 +02:00
provider:
# Your provider choice
# Case insensitive
choice: openweathermap
# Provider settings here
# Unlike the previous option, these are case sensitive
openweathermap:
2022-04-24 11:49:22 +02:00
apiKey: 'd3d37fd3511ef1d4b44c7d574e9b56b8'
2022-04-23 18:49:02 +02:00
# More providers soon!
2022-06-11 16:49:25 +02:00
realtime:
2022-06-11 18:39:34 +02:00
enabled: false
2022-06-11 16:49:25 +02:00
worlds:
- world
# "auto" to use server's timezone
# Alternatively choose one of these: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
timezone: 'auto'
# x day cycles / 24 hrs
2022-06-11 18:39:34 +02:00
# Not implemented yet
2022-06-11 16:49:25 +02:00
timeScale: 1.0
# How often should we recalculate the time (in ticks)
# Very minimal, if any, impact on performance
interval: 1
2022-04-23 18:49:02 +02:00
settings:
2022-04-23 19:57:57 +02:00
# Delay between rechecking weather
2022-04-23 18:49:02 +02:00
# 20 is one second
2022-04-23 19:57:57 +02:00
# Shouldn't affect performance
timeBetweenRecheck: 600
2022-06-11 11:26:53 +02:00
# Whether to display an actionbar containing info
actionbar: true
2022-04-23 18:49:02 +02:00
2022-04-23 19:57:57 +02:00
# Advanced options
2022-04-24 19:05:51 +02:00
timeBeforeInitialRun: 0
debug: false
2022-06-11 11:26:53 +02:00
debugAllowDox: false
messages:
# %weather_full% - full state description, such as "extreme thunder"
# %weather% - short state description, such as "rain"
actionbarInfo: "&b%weather_full%"