MYSQL/YML DATA STORAGE
two methods for saving player stats and data: local YML files or a MySQL database. This gives you the flexibility to choose between the simplicity of files or the power and scalability of a database.
Configuration is managed in the config.yml file.
YML Mode (Default)
This is the simplest mode and requires no additional setup. It's ideal for smaller servers or for getting started quickly.
How it works: Each player will have a
.ymlfile named after their UUID in the/plugins/TheBridge/playerdata/folder. This file stores their stats and selected cosmetics.Activation: To use this mode, simply leave the
database.mysql.enabledoption set tofalseinconfig.yml.YAML
# config.yml database: mysql: enabled: false # The rest of the mysql settings are ignored
MySQL Mode
This mode is recommended for server networks (BungeeCord) or large servers seeking better performance and centralized data management.
How it works: All player data is stored in tables within a MySQL database, allowing multiple servers to access the same stats.
Activation:
Ensure you have a MySQL database server.
In
config.yml, changeenabledtotrueand fill in the connection details for your database.
YAML
# config.yml database: mysql: enabled: true host: localhost port: 3306 database: thebridge username: root password: passwordThe plugin will automatically create the necessary tables (
players,games, etc.) the first time it connects.
Last updated