CommandSync 2.3

Synchronize console and player commands between multiple Minecraft server instances.

  1. YoFuzzy3
    I wrote this plugin because quite a few people wanted it. Request thread.

    This is a two-part plugin.
    1. Read this entire post before installing.
    2. Download the zip package and put it wherever.
    3. Unzip the package.
    4. Stop your BungeeCord server, if it isn't already.
    5. Put the CommandSyncServer.jar file in your BungeeCord's plugin folder.
    6. Start your BungeeCord server.
    7. Stop your BungeeCord server.
    8. Set the pass in the <BungeeCord>/plugins/CommandSync/config.txt.
    9. Start your BungeeCord server.
    10. Stop your Minecraft servers, if they aren't already.
    11. Put the CommandSyncClient.jar file in your Minecraft servers' plugin folders. Magically, they don't need to be under the same BungeeCord instance.
    12. Start your Minecraft servers.
    13. Stop your Minecraft servers.
    14. In each <MinecraftServer>/plugins/CommandSync/config.txt put a UNIQUE name for identification. Example: survival, creative or whatever. Also put the pass that you set in CommandSyncServer's config.txt.
    15. Start your Minecraft servers.
    16. Woo, you're done!
    Here are some example uses.
    1. /sync console all broadcast Hi there people! would make the console on all servers run the command broadcast Hi there people!
    2. /sync console survival broadcast Hey there! would make the console on the server identified as survival run the command broadcast Hey there!
    3. /sync console bungee alert Wassup! would make the console of the BungeeCord server run the command alert Wassup!
    4. /sync player all me Hey would make every online player under the BungeeCord instance the CommandSyncServer is running off run the command /me Hey
    5. /sync player md_5 give YoFuzzy3 cookie 1337 would make the player md_5 run the command /give YoFuzzy3 cookie 1337
    (Of course when you make a player perform a command they must have the permission to use it)

    • /sync - view the help menu.
    • /sync console - Send a command to run on all Minecraft servers, a single Minecraft server, or the BungeeCord server.
    • /sync player - Send a command to run for all players, or a single player.
    • sync.use - Access to the command /sync - a Bukkit command. Default: OP.
    Code (Text):
    • ip - The IP that the CommandSyncServer tries to bind to.
    • port - The port that the CommandSyncServer tries to bind to.
    • heartbeat - In milliseconds, how often should the CommandSyncServer process data.
    • pass - A password that all clients must authorize through. (UNSET means the plugin will not operate.)
    • debug - If true all debug will be saved to a log.txt file.
    Code (Text):
    • ip - The IP that the CommandSyncClient tries to connect to.
    • port - The port that the CommandSyncClient tries to connect to.
    • heartbeat - In milliseconds, how often should the CommandSyncClient process data.
    • name - A UNIQUE identifier for the CommandSyncClient, used for the /sync console single command. (UNSET means the plugin will not operate.)
    • pass - A password that the client uses to authorize with the server. (UNSET means the plugin will not operate.)
    • debug - If true all debug will be saved to a log.txt file.
    Awesome Features
    • This plugin now uses Java networking, making it much more reliable than the Plugin Messaging System. This means that silly bugs no longer exist. It also means you can synchronize commands across Minecraft servers under different BungeeCord server instances!
    • If you try sync a command and the CommandSyncServer is down, it will be kept in a queue for when it comes back online!
    • If a Minecraft server is down the CommandSyncServer will wait until it comes back online before it tells it to run a command!
    • If you try sync a command for a player that is offline, the command will not be attempted to run until they come back online!
    • All command queues are saved to a file on shutdown, meaning you can have downtimes across many servers but every command will be stored and run as soon as possible!
    • Authorization for secure cross-network links!
    • Debug file logging!
    Here's my very bad diagram of how it works made in Paint, you're welcome to make me a better one.

    If that diagram made no sense to you here it is in most basic text form.
    • /sync console all /sync -> Single CSC -> CSS -> All CSCs -> MC Console -> Run
    • /sync console <server> /sync -> Single CSC -> CSS -> Defined CSC -> MC Console -> Run
    • /sync console bungee /sync -> Single CSC -> CSS -> Bungee Console -> Run
    • /sync player all /sync -> Single CSC -> CSS -> All Players -> Run
    • /sync player <name> /sync -> Single CSC -> CSC -> Defined Player -> Run
    Because of how it all works data has to be saved. So here's that explained.

    CommandSyncClient (CSC) saves:
    • All the string commands that have been sent. These are never cleared.
    • An int value representing where the CSC is up to in sending commands to the CSS. This is not cleared.
      • This allows the CSC to queue up commands if the CSS goes down.
    CommandSyncServer (CSS) saves:
    • All the string commands that have been received. These are never cleared.
    • An int value for every CSC representing where it is up to in sending commands to that CSC. These are never cleared.
      • This allows the CSS to queue up commands so when a CSC goes down commands will be run when it comes back online, or when a new CSC is added to the setup the stored commands can be run for it.
    • All the commands that have been queued up for offline players. These are cleared after being run.
      • These are run when the player comes online.
    Deleting any piece of data (excluding the queued commands for offline players) will cause the CSS and the CSCs to go out of sync (wow such pun) potentially causing commands to be run duplicate times.

    If the CSS or a CSC crashes and prevents its data from saving then the same effect as described above may occur.

    If you are confident that all commands have been processed successfully and would like to reset the saves then you must:
    1. Shut down the Bungee server running CSS and all MC servers running CSC.
    2. Delete all the data.txt files located at:
      1. Bungee/plugins/CommandSync/data.txt
      2. MC Server/plugins/CommandSync/data.txt
    3. Start up all the servers.
    Version 2.3 - Added support for spaces in the /sync command. Added version to internal checking. Fix null password bug.

    Version 2.2 - Fix config file generation.

    Version 2.1 - The config.txt will be updated on startup with some new options for auth and debug file logging.

    Version 2.0b - Complete rewrite! Now uses Java networking making it a lot more flexible, reliable and secure.

    Version 1.0 - Initial release. Not feature complete.


    This plugin is using Hidendra's MCStats service. This means it will report anonymous statistics to


    If you appreciate my development work a donation is always much welcome and greatly appreciated!​

    Donations so far:​
    • MostFunGuy - 09/12/13 - $50
    • MostFunGuy - 09/12/13 - $50

Recent Reviews

  1. Mazurovec
    Version: 2.3
    I did the same things that I was told in the setup and it still dont work.
    i dont know if im doing something wrong or what.
  2. Kc5f
    Version: 2.3
    This is perfect for syncing my anticheat to my proxy, I'm so glad that I found this after banging my head on my desk for the past 2 hours
  3. ServerCoOwner
    Version: 2.3
    This is a great still functional plugin that allows me to ban people from the bungeecord instance with a spigot anticheat. Very Useful!
  4. Hellohi3654
    Version: 2.3
    Still works on 1.16.5 server's
    Great Plugin
    Surprised it has survived the test of time
  5. GeKos171
    Version: 2.3
    Super Plugin-----------------------------------------------------------------------------
  6. Trixx4K
    Version: 2.3
    Don't work. Follow each step exactly. It just says can't connect to the server. Tried multiple times. No support, devs ain't active anymore.
  7. DevelopmentHigh
    Version: 2.3
    Terrible, plugin from 2013 0 updates and works so bad, execute command when i don't want
  8. JaHollYT
    Version: 2.3
    Works fine and is a great extension for the Plugin MyCommand & MyCommandBungeeCord :)!
  9. Coolkc456
    Version: 2.3
    I have servers ran on two different hosts and this doesn't seem to want to connect. I'm getting "[CommandSync] Could not connect to the server." spam in all of the consoles despite having names in each config with a matching password.
  10. TreedGF
    Version: 2.3
    Please add the ability to synchronize commands through the proxy console. Currently we can only execute the command through the client.