Update Configuration authored by Ashijin's avatar Ashijin
General configuration options help you customize the plugin's experience or provide general overall features. General configuration options help you customize the plugin's experience or provide general overall features.
Storage Storage
------- -------
MythicCosmetics supports a couple ways of storing your player data, defined by `Storage.Driver` in your `config.yml` file. MythicCosmetics supports a couple ways of storing your player data, defined by `Storage.Driver` in your `config.yml` file.
**Note that this only includes what cosmetics players are using - cosmetics players have unlocked are stored using permissions.** **Note that this only includes what cosmetics players are using - cosmetics players have unlocked are stored using permissions.**
#### Supported Storage Drivers #### Supported Storage Drivers
| Driver | Description | | Driver | Description |
| ------ | ------ | | ------ | ------ |
| JSON | Default, stores player data in .json files in the `MythicMobs/data/cosmetics` folder | | JSON | Default, stores player data in .json files in the `MythicMobs/data/cosmetics` folder |
| MYSQL | Stores all player data in a MySQL Database | | MYSQL | Stores all player data in a MySQL Database |
##### Database Configuration (MySQL) ##### Database Configuration (MySQL)
``` ```
Configuration: Configuration:
Storage: Storage:
Driver: MYSQL Driver: MYSQL
Address: localhost Address: localhost
Port: 3306 Port: 3306
Database: [database name] Database: [database name]
Username: [database username] Username: [database username]
Password: [database password] Password: [database password]
``` ```
Spray Options Spray Options
------------- -------------
The Sprays section lets you define the stay time (in seconds) and the sound spraying makes. Setting `PersistTime` to `0` will make sprays stay until either a new one is placed or the chunk is unloaded. The Sprays section lets you define the stay time (in seconds) and the sound spraying makes. Setting `PersistTime` to `0` will make sprays stay until either a new one is placed or the chunk is unloaded.
``` ```
Configuration: Configuration:
Sprays: Sprays:
Sound: 'entity.cat.hiss' Sound: 'entity.cat.hiss'
Volume: 1.0 Volume: 1.0
Pitch: 2.0 Pitch: 2.0
PersistTime: 60 PersistTime: 60
``` ```