Skip to content

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

License

Notifications You must be signed in to change notification settings

rmnaderdev/Whitelist-Sync-2-Spigot

Repository files navigation

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 or SQlite 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 forge mod? Find it on the WhitelistSync2 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.

[8/16/22] This project is primarily for my use as I don't like to put my free-time into it. It is a tool I use and I am happy to keep it open source for others to use as well, but I no longer maintain this project for other people to use. This is part of the reason I no longer maintain it on CurseForge (among other strong feelings I have about the CurseForge platform). I would love to maintain this project for others to use, but this project has ate up so much of my free-time fighting with annoying Forge issues and it lacks any financial incentive to make up for that time. I will still accept issue reports, I just might not get to them in a timely manner.

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 mySQL 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.

Permissions (as of WL Sync v2.2.3)

  • whitelistsync2.wl.manage: Allows the user to update the whitelist using the add, remove, sync, and copyServerToDatabase commands.
  • whitelistsync2.wl.view: Allows the user to view whitelisted players using the list command.
  • whitelistsync2.wlop.manage: Allows the user to update the op list using the add, remove, sync, and copyServerToDatabase commands.
  • whitelistsync2.wlop.view: Allows the user to view a list of opped players using the list command.

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages