Point every server at the same MySQL or MariaDB database and they share one pass.
Set it up#
- Create an empty database and a user for it.
- In
plugins/OtPass/config.ymlon every server, set:
storage:
type: mysql
mysql:
host: localhost
port: 3306
database: minecraft
username: root
password: ''
pool-size: 4
table-prefix: otpass_
sync-interval-seconds: 5
- Use the same
config.yml,quests.ymlandrewards.ymlon every server. This includes the season settings,xp-per-tierandseason.timezone, so quests and tiers match. - Restart every server. OtPass creates its tables.
mariadb is accepted as storage.type as well.
How it behaves#
- Changed progress is saved every
sync-interval-secondsand when a player leaves, so players keep their quests when they switch servers. On MySQL the pass of a joining player loads about one and a half seconds after the join. - XP is added in the database instead of overwritten, so XP given by staff on one server is never lost on another.
- Every 30 seconds each server reads the XP and the premium flag of its online players again, so changes from other servers show up.
- Every claim is recorded in the database before the reward is given. A reward cannot be paid twice, not even when a player claims and switches servers at the same moment.
- Rewards are given on the server where the player claims them.
- Money rewards and premium purchases use the economy of the server where they happen. Use one shared economy on all servers.