Config file
The config file that contains all TailsLib settings.
Default config
Version 0.0.1-beta
version: 1
locale: ru_RU
debug: no
sqlstorage: # SQL Storage settings for every service
BlockStorage: # Block Storage service for Custom Blocks
type: sqlite # Only SQLite provided for now
url: blockstorage.db # SQLite file path
poolsize: 2 # How much connection keep for use; If sql keep failing use 1 as value
service: # Service settings
validate: # Validation settings
# Validation service is checks every custom block placed in worlds
# if block is not valid it will try to fix him
# also very helpful when SQL fail to save data cuz this service
# will save block again.
# Validation happens at start, every set period and when server is disabling
enabled: yes
period: 300 # In seconds
Version
Version of the config. Do not change that.
Locale
The locale that TailsLib should use. All locale files stored in TailsLib/locale/ folder.
By default after first launch you got 2 languages:
English (US Version) -
en_USRussian (Русский) -
ru_RU
To change the language you need to enter name of the file, example:
locale: ru_RU # Will change plugin language to russian.If file not presented the default language to set is english. In order to generate languages again just delete the locale folder.
Debug
When enabled will log every useful information.
SQL Storage
The sql storage service settings AKA database.
If any of system uses SQL then there's sql storage service registered in that section.
Do not change anything if you don't understand what are you doing.
How this works
Supported SQL Databases
SQLite
Keyword: sqlite
Settings:
url [Single string] - Path to file to create or use.
Last updated