Updated SubAPI (markdown)

ME1312 2017-08-17 02:19:54 -04:00
parent 77e1c448db
commit 4526895341

@ -79,6 +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>
[http://subservers.ME1312.net/Javadoc/SubServers.Bungee/](http://subservers.ME1312.net/Javadoc/SubServers.Client.Bukkit/)
### Using SubAPI for SubServers.Client
Like bungee, SubAPI methods can be accessed using this simple 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).
## SubServers.Host
This will show how to use SubAPI for SubServers.Host. For more detailed information visit this page:<br>
[http://subservers.ME1312.net/Javadoc/SubServers.Host/](http://subservers.ME1312.net/Javadoc/SubServers.Host/)