Updated SubAPI (markdown)

ME1312 2020-03-07 14:33:14 -05:00
parent 2bd5f48cf3
commit 90efd78a0b

@ -31,7 +31,7 @@ You may want to use Maven to handle the SubAPI dependency for you. If so, here's
### Using SubAPI as a Soft Dependancy
A "Soft Dependancy" is where your plugin will use SubServers, but it is not required for your plugin to function properly.
First, Make a method to see if SubServers v2.11.2a+ is available using reflection:
First, Make a method to see if, for example, SubServers v2.14a+ is available using reflection:
```java
public boolean isSubServers2() {
try {
@ -53,7 +53,7 @@ So what happens here is:<br>
__Pro-Tips for using SubServers as a Soft-Dependancy:__
* Make sure SubServers is available using the above method before accessing SubServers classes
* Never use imports for classes starting with "net.ME1312"<br>`new Version(1);` is now `new net.ME1312.SubServers.Bungee.Library.Version.Version(1);`<br>`SubAPI.getInstance();` is now `net.ME1312.SubServers.Bungee.SubAPI.getInstance();`
* Never use imports for classes starting with "net.ME1312"<br>`new Version(1);` is now `new net.ME1312.Galaxi.Library.Version.Version(1);`<br>`SubAPI.getInstance();` is now `net.ME1312.SubServers.Bungee.SubAPI.getInstance();`
## SubServers.Bungee
This will show how to use SubAPI for SubServers.Bungee. For more detailed information visit this page:<br>