Multi Server Support
The plugin is fully supported multi server with mysql and redis connection. For Redis server we recommend it the hexaverse hosting
Those guilds are on every server.โ
plugins/CocoGuild/config.yml
settings:
database:
type: sqlite
table-prefix: "cocoguild_"
server-name: "default"
mysql:
host: localhost
port: 3306
database: CocoGuild
user: root
password: password123
sqlite:
file: guilds.db
How tho setup MySQL connection?โ
- Set the type from
sqlite
tomysql
- Set the
host
,port
,database
,user
andpassword
- Set the
server-name
to youe server name like survival
Optional
- Change the
table-prefix
Multi-server chattingโ
plugins/CocoGuild/config.yml
settings:
chat:
method: "single" # possible values: redis, single
redis:
host: "localhost"
port: 6379
password: ""
channel: "cocoguild:chat"
format:
guild: '&8[&#FF3737Guild&8] �BFB08{player} &8ยป &f{message}'
ally: '&8[&#FF3737Ally&8] &8[&#FF3737{sender_guild}&8] �BFB08{player} &8ยป &f{message}'
How tho setup Redis connection?
- Set the method from
single
toredis
- Set the
host
,port
andpassword
Optional
- Change the
channel
Separate server statisticsโ
plugins/CocoGuild/config.yml
settings:
statistics:
type: sqlite
sqlite-file: stats.db
mysql:
table-prefix: stats_
If you want the statistics to be saved in mysql, then change the type
from sqlite to mysql. And if you want it to calculate the statistics separately on each server, then always change the table-prefix
to something else, say the name of the given server, e.g.: survival_