ModsJava
CommandSync
Minecraft Java mod. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotIntroduction
I wrote this plugin because quite a few people wanted it. Request thread.
Installation
This is a two-part plugin.
Here are some example uses.
Commands
CommandSyncServer:
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.
CommandSyncClient (CSC) saves:
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:
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]](//proxy.spigotmc.org/48ad5b2de739087866967c052a3a9fc9c0e11c7e/687474703a2f2f796f66757a7a79332e6e65742f696d616765732f70617970616c2d627574746f6e2e706e67)
I wrote this plugin because quite a few people wanted it. Request thread.
Installation
This is a two-part plugin.
- Read this entire post before installing.
- Download the zip package and put it wherever.
- Unzip the package.
- Stop your BungeeCord server, if it isn't already.
- Put the CommandSyncServer.jar file in your BungeeCord's plugin folder.
- Start your BungeeCord server.
- Stop your BungeeCord server.
- Set the pass in the <BungeeCord>/plugins/CommandSync/config.txt.
- Start your BungeeCord server.
- Stop your Minecraft servers, if they aren't already.
- Put the CommandSyncClient.jar file in your Minecraft servers' plugin folders. Magically, they don't need to be under the same BungeeCord instance.
- Start your Minecraft servers.
- Stop your Minecraft servers.
- 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.
- Start your Minecraft servers.
- Woo, you're done!
Here are some example uses.
- /sync console all broadcast Hi there people! would make the console on all servers run the command broadcast Hi there people!
- /sync console survival broadcast Hey there! would make the console on the server identified as survival run the command broadcast Hey there!
- /sync console bungee alert Wassup! would make the console of the BungeeCord server run the command alert Wassup!
- /sync player all me Hey would make every online player under the BungeeCord instance the CommandSyncServer is running off run the command /me Hey
- /sync player md_5 give YoFuzzy3 cookie 1337 would make the player md_5 run the command /give YoFuzzy3 cookie 1337
Commands
- /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.
CommandSyncServer:
Code (Text):
ip=localhost
port=9190
heartbeat=1000
pass=UNSET
debug=false
port=9190
heartbeat=1000
pass=UNSET
debug=false
- 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=localhost
port=9190
heartbeat=1000
name=UNSET
pass=UNSET
debug=false
port=9190
heartbeat=1000
name=UNSET
pass=UNSET
debug=false
- 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.
- 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. http://imgur.com/llIbkia
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
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.
- 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.
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:
- Shut down the Bungee server running CSS and all MC servers running CSC.
- Delete all the data.txt files located at:
- Bungee/plugins/CommandSync/data.txt
- MC Server/plugins/CommandSync/data.txt
- 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.
Source
GitHub.
Notice
This plugin is using Hidendra's MCStats service. This means it will report anonymous statistics to MCStats.org.
Statistics
Donate
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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.