realweather/src/main/resources/config.yml

72 lines
2.1 KiB
YAML
Raw Normal View History

2022-04-23 16:49:02 +00:00
weather:
worlds:
- world
- second_world
- third_world
2022-04-25 17:34:22 +00:00
# "point" - static location
# "player" - player's IP location (fake weather)
2022-04-25 17:34:22 +00:00
# "map" - world resembles a real-world globe
2022-04-23 16:49:02 +00:00
source: point
point:
latitude: 41.84201
longitude: -89.485937
2022-04-24 09:49:22 +00:00
player:
# Get your own @ https://www.maxmind.com/en/geolite2/signup
2022-04-24 09:49:22 +00:00
geolite2_accountId: 710438
geolite2_apiKey: 'qLeseHp4QNQcqRGn'
2022-04-25 17:34:22 +00:00
map:
# 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 a player's position on map converts to 94 degrees (out of bounds), it becomes -86 degrees
2022-04-25 17:34:22 +00:00
on_exceed: 2
2022-04-23 16:49:02 +00:00
provider:
# Weather provider
2022-04-23 16:49:02 +00:00
choice: openweathermap
# Configure it here
2022-04-23 16:49:02 +00:00
openweathermap:
2022-11-09 14:45:43 +01:00
apiKey: 'd3d37fd3511ef1d4b44c7d574e9b56b8' # PLEASE get your own @ https://home.openweathermap.org/users/sign_up
2022-04-23 16:49:02 +00:00
# More providers soon!
2022-06-11 14:49:25 +00:00
realtime:
# warning: this removes sleep
2022-06-11 16:39:34 +00:00
enabled: false
2022-06-11 14:49:25 +00: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
timeScale: 1.0
# How often should we recalculate the time (in ticks)
# Very minimal impact on performance
2022-06-11 14:49:25 +00:00
interval: 1
2022-04-23 16:49:02 +00:00
settings:
2022-04-23 17:57:57 +00:00
# Delay between rechecking weather
# in ticks, 20 is one second
2022-04-23 17:57:57 +00:00
# Shouldn't affect performance
timeBetweenRecheck: 600
2022-06-11 09:26:53 +00:00
# Whether to display an actionbar containing info
actionbar: true
2022-04-23 16:49:02 +00:00
2022-04-23 17:57:57 +00:00
# Advanced options
2022-04-24 17:05:51 +00:00
timeBeforeInitialRun: 0
debug: false
2022-06-11 09:26:53 +00:00
debugAllowDox: false
messages:
# settings.actionbar toggles this
2022-06-11 09:26:53 +00:00
# %weather_full% - full state description, such as "extreme thunder"
# %weather% - short state description, such as "rain"
2022-11-09 14:45:43 +01:00
actionbarInfo: "&b%weather_full%"