config.yml
Plik config.yml zawiera g艂贸wne ustawienia konfiguracyjne dla wtyczki DisBan, w tym tryb debugowania, nazw臋 serwera, ustawienia synchronizacji i konfiguracj臋 bazy danych.
Ustawienia Og贸lne
debug
Enables debug mode for troubleshooting. Set to false in production.
debug: falseKonfiguracja Serwera
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: trueKonfiguracja Bazy Danych
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'Konfiguracja Multi-Serwer
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