Home›Java›Mods›CommandSync
ModsJava

CommandSync

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Introduction
I wrote this plugin because quite a few people wanted it. Request thread.

Installation
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!
Usage
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)

Commands
Permissions
Configuration
CommandSyncServer:
Code (Text):
ip=localhost
port=9190
heartbeat=1000
pass=UNSET
debug=false
CommandSyncClient:
Code (Text):
ip=localhost
port=9190
heartbeat=1000
name=UNSET
pass=UNSET
debug=false
Awesome Features
Internals
Here's my very bad diagram of how it works made in Paint, you're welcome to make me a better one. http://imgur.com/llIbkia

If that diagram made no sense to you here it is in most basic text form.
Because of how it all works data has to be saved. So here's that explained.

CommandSyncClient (CSC) saves:
CommandSyncServer (CSS) saves:
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.
Changelog
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.

Source
GitHub.

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

Statistics
[​IMG]

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

Donations so far:​
[​IMG]
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CommandSync is a free Minecraft Java mod. Downloaded 22,186 times (via Spigot). Download it and open it directly in the game.

Explore more