Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. # Each database definition must be in a separate section. You can choose any name for the sections, as long as it's not already used.
  2. database 1:
  3. # an example database to describe all possible options.
  4.  
  5. type: MySQL
  6. # The type of this database. Allowed values are 'CSV', 'SQLite', 'MySQL' and 'disabled'.
  7. # 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.
  8.  
  9. pattern: db_.*
  10. # Defines which variables to save in this database.
  11. # This pattern uses Regex syntax, e.g. use 'db_.*' (without the quotes) to store all variables prefixed with 'db_' in this database,
  12. # 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).
  13. # Please note that variables are only stored in one database, and databases are checked from top to bottom,
  14. # e.g. if a variable matches the topmost database's pattern it will be saved there and nowhere else.
  15. # BTW: Patterns are checked in a separate thread, i.e. your server likely won't run slower when using complicated patterns.
  16.  
  17. monitor changes: true
  18. monitor interval: 20 seconds
  19. # If 'monitor changes' is set to true, variables will repeatedly be checked for updates in the database (in intervals set in 'monitor interval').
  20. # ! Please note that you should set 'pattern', 'monitor changes' and 'monitor interval' to the same values on all servers that access the same database!
  21.  
  22. # == MySQL configuration ==
  23. host:
  24. port:
  25. user:
  26. password:
  27. database:
  28. # (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)
  29.  
  30. # == SQLite/CSV configuration ==
  31. file: ./plugins/Skript/variables.db
  32. # 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).
  33. # 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/...').
  34.  
  35. backup interval: 2 hours
  36. # Creates a backup of the file every so often. This can be useful if you ever want to revert variables to an older state.
  37. # Variables are saved constantly no matter what is set here, thus a server crash will never make you loose any variables.
  38. # Set this to 0 to disable this feature.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement