· 9 years ago · Feb 20, 2017, 02:00 AM
1 database 1:
2 # an example database to describe all possible options.
3
4 type: MySQL
5 # The type of this database. Allowed values are 'CSV', 'SQLite', 'MySQL' and 'disabled'.
6 # 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.
7
8 pattern: .*
9 # Defines which variables to save in this database.
10 # This pattern uses Regex syntax, e.g. use 'db_.*' (without the quotes) to store all variables prefixed with 'db_' in this database,
11 # 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).
12 # Please note that variables are only stored in one database, and databases are checked from top to bottom,
13 # e.g. if a variable matches the topmost database's pattern it will be saved there and nowhere else.
14 # BTW: Patterns are checked in a separate thread, i.e. your server likely won't run slower when using complicated patterns.
15
16 monitor changes: false
17 monitor interval: 20 seconds
18 # If 'monitor changes' is set to true, variables will repeatedly be checked for updates in the database (in intervals set in 'monitor interval').
19 # ! Please note that you should set 'pattern', 'monitor changes' and 'monitor interval' to the same values on all servers that access the same database!
20
21 # == MySQL configuration ==
22 host: vps.cyburgh.net# Where the database server is located at, e.g. 'example.com', 'localhost', or '192.168.1.100'
23 port: 3306# 3306 is MySQL's default port, i.e. you likely won't need to change this value
24 user: pvpserver
25 password: 20PvpServerCyburgh17
26 database: testserver# The database to use. Skript will automatically create a table 'variables21' in this database if it doesn't exist
27 # (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)