Skip to main content

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?โ€‹

  1. Set the type from sqlite to mysql
  2. Set the host, port, database, user and password
  3. Set the server-name to youe server name like survival

Optional

  1. 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] &#0BFB08{player} &8ยป &f{message}'
ally: '&8[&#FF3737Ally&8] &8[&#FF3737{sender_guild}&8] &#0BFB08{player} &8ยป &f{message}'

How tho setup Redis connection?

  1. Set the method from single to redis
  2. Set the host, port and password

Optional

  1. 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_