Updated SubAPI (markdown)

ME1312 2017-08-24 16:31:43 -04:00
parent 490742de6f
commit c9c876b98d

@ -79,12 +79,13 @@ SubServer subserver = (serverinfo instanceof SubServer)?(SubServer)serverinfo:nu
// This will get you the server as a SubServer if it was registered as a SubServer in the first place
```
## SubServers.Client
this will show how to use SubAPI for SubServers.Client. For more detailed information visit the page for your platform:<br>
## SubServers.Sync & SubServers.Client
this will show how to use SubAPI for SubServers.Sync and SubServers.Client since they are extremely similar in that regard. For more detailed information visit the page for your platform:<br>
[http://subservers.ME1312.net/Javadoc/SubServers.Sync/](http://subservers.ME1312.net/Javadoc/SubServers.Sync/)<br>
[http://subservers.ME1312.net/Javadoc/SubServers.Client.Bukkit/](http://subservers.ME1312.net/Javadoc/SubServers.Client.Bukkit/)
### Using SubAPI for SubServers.Client
Like bungee, SubAPI methods can be accessed using the method `SubAPI.getInstance()`, however for SubServers.Client most of the API is SubData packet based. This means you will have to create your own packets, or use the ones provided to you in the `net.ME1312.SubServers.Client.<platform>.Network.Packet` package. For more info on SubData [click here](https://github.com/ME1312/SubServers-2/wiki/SubData), to see what the JSON responses are for packets, [click here](https://github.com/ME1312/SubServers-2/tree/master/SubServers.Bungee/src/net/ME1312/SubServers/Bungee/Network/Packet).
### Using SubAPI for SubServers.Sync/SubServers.Client
Like bungee, SubAPI methods can be accessed using the method `SubAPI.getInstance()`, however for SubServers.Client most of the API is SubData packet based. This means you will have to create your own packets, or use the ones provided to you in the `Network.Packet` package. For more info on SubData [click here](https://github.com/ME1312/SubServers-2/wiki/SubData), to see what the JSON responses are for packets, [click here](https://github.com/ME1312/SubServers-2/tree/master/SubServers.Bungee/src/net/ME1312/SubServers/Bungee/Network/Packet).
## SubServers.Host
This will show how to use SubAPI for SubServers.Host. For more detailed information visit this page:<br>