/Whitelist-Sync-2

A mod that allows you to sync the whitelists and ops list from multiple Forge and Spigot servers together using one MySQL, SQlite, or PostgreSQL database!

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Are you a server owner who is sick of adding individual players to each of your 100 forge servers? Wait you only have 2 forge servers? Well this mod can help you still!

Introducing Whitelist Sync!

A mod that allows you to sync the whitelists and ops list from multiple Forge and Spigot servers together using one MySQL, SQlite or PostgreSQL database!

This mod allows you to run a single /wl add <player> or /wlop op <player> on one of your servers and it will update all of your other forge servers running this mod connected to the proper database!

Looking for a spigot plugin? Find it on the WhitelistSync2-Spigot GitHub page.

News

[7/31/20] Version 2.2.1 has been released and includes some bug fixes. PLEASE NOTE: Once you initially run this version on a MySQL database when using the op sync feature, the older versions of the mod will no longer work and will give SQL errors due to changes in the data structure. To still use older versions of this mod, disable the op sync feature of the older versions or contact me for specific changes.

Installation

For SQLite database config:

  • Download this mod and add it to your mods folder.
  • Run your server and setup the config (whitelistsync.cfg/whitelistsync.toml) and configure your update settings and timers.
  • NOTE: Be sure to make the database path the same for all of the servers you want to link together!
  • When the server runs it is going to make a new database. If you want to push your current whitelist to the database use "/wl copyServerToDatabase" then you can start all of your other servers and they will sync to the database.

For MySQL server database setup:

  • Download this mod and add it to your mods folder.
  • Run your server and setup the config (whitelistsync.cfg/whitelistsync.toml).
  • Setup your mySQL database IP, port, and authentication as well as the Sync Timer.
  • Run server and make sure the database connects. Note: Mod will make it's own database and table for you or connect to an existing one.
  • Push your existing whitelist to the server (/wl copyServerToDatabase) or pull changes from your database (/wl sync).
  • Enjoy!

For postgreSQL server database setup:

  • Download this mod and add it to your mods folder.
  • Run your server and setup the config (whitelistsync.cfg/whitelistsync.toml).
  • Setup your PostgreSQL url and authentication as well as the Sync Timer.
  • Run server and make sure the database connects. Note: Mod will make it's own database and table for you or connect to an existing one.
  • Push your existing whitelist to the server (/wl copyServerToDatabase) or pull changes from your database (/wl sync).
  • Enjoy!

Commands

Whitelist Control

  • /wl add <player> | Adds a specified player to whitelist. (Use this instead of /whitelist add)
  • /wl remove <player> | Removes a specified player from the whitelist. (Use this instead of /whitelist remove)
  • /wl list | Lists users whitelisted across all servers.
  • /wl sync | Pulls whitelist from the database and updates the local server whitelist.
  • /wl copyServerToDatabase | Pushes local server whitelist to the database and merges them in.

Op Control

  • /wlop op <player> | Ops a specified player. (Use this instead of /op)
  • /wlop deop <player> | De-ops a specified player. (Use this instead of /deop)
  • /wlop list | Lists users who are ops across all servers.
  • /wlop sync | Pulls list of ops from the database and updates local server ops.
  • /wlop copyServerToDatabase | Pushes local server ops to database and merges them in.

Please post your bugs to GitHub or better yet make a pull request!