config.yml
The config.yml file contains the main configuration settings for the DisBan plugin, including debug mode, server name, sync settings, and database configuration.
General Settings
debug
Enables debug mode for troubleshooting. Set to false in production.
debug: falseServer Configuration
server.name
Display name of your server used in Discord messages and logs.
server:
name: 'My Server'Sync Settings
sync.allow-unsync
Allows players to unlink their Discord account. Set to false to prevent unlinking.
sync:
allow-unsync: trueDatabase Configuration
Configura el tipo de base de datos y configuraci贸n de conexi贸n.
database.type
Database type: SQL, MongoDB, or Flatfile.
database: type: Flatfiledatabase.sql
SQL database connection settings (MySQL/MariaDB/PostgreSQL).
database:
sql:
host: localhost
port: 3306
name: disban
user: root
password: ''
pool-size: 10
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000database.mongodb
MongoDB connection settings.
database:
mongodb:
uri: 'mongodb://localhost:27017'
database: disbandatabase.flatfile
Flatfile storage directory.
database:
flatfile:
directory: 'data'Multi-Server Configuration
Configuraci贸n para setups multi-servidor con sincronizaci贸n Redis.
multiserver.enabled
Enable multi-server mode for multiple Minecraft servers sharing one Discord bot.
multiserver:
enabled: falsemultiserver.bot-host
Set to true if this server hosts the Discord bot.
bot-host: falsemultiserver.server-id
Unique identifier for this server in the multi-server setup.
server-id: 'server-1'multiserver.redis
Redis connection settings for multi-server synchronization.
multiserver:
redis:
host: localhost
port: 6379
password: ''
use-ssl: false
pool-size: 8
timeout: 2000