Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- database 1:
- # an example database to describe all possible options.
- type: MySQL
- # The type of this database. Allowed values are 'CSV', 'SQLite', 'MySQL' and 'disabled'.
- # CSV uses a text file to store the variables, while SQLite and MySQL use databases, and 'disabled' makes Skript ignore the database as if it wasn't defined at all.
- pattern: .*
- # Defines which variables to save in this database.
- # This pattern uses Regex syntax, e.g. use 'db_.*' (without the quotes) to store all variables prefixed with 'db_' in this database,
- # or use '.*' (the default value) to store all variables here (recommended for the last database in this list, as otherwise some variables might not be saved).
- # Please note that variables are only stored in one database, and databases are checked from top to bottom,
- # e.g. if a variable matches the topmost database's pattern it will be saved there and nowhere else.
- # BTW: Patterns are checked in a separate thread, i.e. your server likely won't run slower when using complicated patterns.
- monitor changes: true
- monitor interval: 20 seconds
- # If 'monitor changes' is set to true, variables will repeatedly be checked for updates in the database (in intervals set in 'monitor interval').
- # ! Please note that you should set 'pattern', 'monitor changes' and 'monitor interval' to the same values on all servers that access the same database!
- # == MySQL configuration ==
- host: 127.0.0.1# Where the database server is located at, e.g. 'example.com', 'localhost', or '192.168.1.100'
- port: 3306# 3306 is MySQL's default port, i.e. you likely won't need to change this value
- user: root@localhost
- password: pass
- database: mysql
- table: variables21# The name of the table to create. 'variables21' is the default name, if this was to be omitted.
- # (If the table exists but is defined differently that how Skript expects it to be you'll get errors and no variables will be saved and/or loaded)
- # == SQLite/CSV configuration ==
- file: ./plugins/Skript/variables.db
- # Where to save the variables to. For a CSV file, the file extension '.csv' is recommended, but not required, but SQLite database files must end in '.db' (SQLibrary forces this).
- # The file path can either be absolute (e.g. 'C:\whatever\...' [Windows] or '/usr/whatever/...' [Unix]), or relative to the server directory (e.g. './plugins/Skript/...').
- #table: variables21
- # The name of the table to create. 'variables21' is the default name, if this was to be omitted.
- # (If the table exists but is defined differently that how Skript expects it to be you'll get errors and no variables will be saved and/or loaded)
- # This is generally not required as the the .db file will only be used by Skript, unless you want to split different variables into different tables
- backup interval: 2 hours
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement