Skip to content

pavog/Multicraft-api

Repository files navigation

Multicraft API client for Java

Build Status Coverage Status Codacy Badge

Requirements

To use the Multicraft API client, the following things are required:

  • Get a hosted Multicraft instance
  • Create an account on your Multicraft panel.
  • Check that your Multicraft panel is reachable from your API (in the same network).
  • Make sure that the API of the Multicraft instance is enabled.
  • Get your API key (Profile -> API key)
  • Now you're ready to use the Multicraft API client.
  • Java >= 8

Maven Installation

By far the easiest way to install the Multicraft Java API client is to include it in your pom.xml within your Maven project.

To do so add this repository to your pom.xml:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
  <!-- Other repositories... -->
</repositories>

And this dependeny:

<dependencies>
  <dependency>
	  <groupId>com.github.pavog</groupId>
	  <artifactId>multicraft-api</artifactId>
	  <version>1.0.0-SNAPSHOT</version>
	</dependency>
  <!-- Other dependencies ... -->
</dependencies>

Please change the <version>1.0.0-SNAPSHOT</version> to the newest version. You can find the newest version on the github releases.

Manual Installation

If you're not familiar with using maven we've added a JAR file to the releases which you can add manually to your project.

Getting started

Initializing the Multicraft API client, and setting your panel url, username and API key.

String testApiUrl = "https://panel.testurl.com/api.php";
String testApiUsername = "username";
String testApiKey = "api-key";
MulticraftAPI api = new MulticraftAPI(testApiUrl, testApiUsername, testApiKey);

API documentation

If you wish to learn more about the API, please visit the Multicraft Developer Portal. API Documentation is available in English and only for the PHP methods.

Contribute

Want to help us make our API client even better? We take pull requests and issue reports.

License

MIT License. Made by Paul Vogel

About

Multicraft API in Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages