The NSWAPI is a database management & utility api for our Minecraft server.
The API provides a database manager, the HonorRanks & rewards handlers, the report system & other utility stuff for our services.
Add those to your pom.xml
<repositories>
<repository>
<id>NSW</id>
<url>https://nexus.noskillworld.fr/repository/NSWAPI/</url>
</repository>
...
</repositories><dependencies>
<dependency>
<groupId>fr.noskillworld.api</groupId>
<artifactId>nswapi</artifactId>
<version>0.6.1</version>
<scope>compile</scope>
</dependency>
...
</dependencies>To use the api, simply call the create() method just like so:
String user = "User"; //The user of the database
String password = "Pass"; //The password of the database
String name = "Name"; //The name of the database
Credentials credentials = new Credentials(user, password, name); //Creates credentials
NSWAPI api = NSWAPI.create(credentials); //Creates an instance of the API