##SynX Plugin that provides an easy way to transfer data between servers.
All builds for my plugins can be found at this link: http://kaikk.net/mc/
####Commands ######/synx nodes
- shows a list with all known nodes
######/synx tags
- shows a list with all known tags
######/synx reload
- reloads the plugin
####Permissions
- synx.manage - Permission necessary to run all commands (default: op)
####Requirements
- MySQL database
Add SynX to your build path. Maven:
<repository>
<id>net.kaikk.mc</id>
<url>http://kaikk.net/mc/repo/</url>
</repository>
<dependency>
<groupId>net.kaikk.mc</groupId>
<artifactId>SynX-Core</artifactId>
<version>0.10</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Use SynX.instance().broadcast(String channel, byte[] data)
and SynX.instance().send(String channel, byte[] data, Node... destination)
to send data.
I suggest to use a ByteStreams.newDataOutput()
to help generating a byte array of data to be sent and ByteStreams.newDataInput()
for received data.
Your plugin can receive data by implementing the ChannelListener class and using SynX.instance().register(Plugin instance, String channel, ChannelListener channelListener)
to register it.