config.yml
Il file config.yml contiene le impostazioni principali del plugin DisBan, tra cui debug, nome server, sync e database.
Impostazioni Generali
debug
Enables debug mode for troubleshooting. Set to false in production.
debug: falseConfigurazione Server
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: trueConfigurazione Database
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'Configurazione Multi-Server
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