Minepacks/Minepacks-API
2020-03-10 00:40:13 +01:00
..
src/at/pcgamingfreaks/Minepacks/Bukkit/API Fix bug where items added to the backpack were not saved correctly 2020-02-25 01:00:46 +01:00
pom.xml Fix build problem with Java 11 2020-03-10 00:40:13 +01:00
README.md Some formatting fixes for the descriptions 2020-03-05 17:44:57 +01:00

Logo

This branch holds the API for the Minepacks plugin.

ciImg apiVersionImg licenseImg

Adding it to your plugin:

Maven:

The API is available through maven.

Repository:

<repository>
	<id>pcgf-repo</id>
	<url>https://repo.pcgamingfreaks.at/repository/maven-everything</url>
</repository>

Dependency:

<!-- Minepacks API -->
<dependency>
    <groupId>at.pcgamingfreaks</groupId>
    <artifactId>Minepacks-API</artifactId>
    <version>2.2</version><!-- Check api-version shield for newest version -->
</dependency>

Build from source:

git clone https://github.com/GeorgH93/Minepacks.git
cd Minepacks
mvn -pl Minepacks-API

Get access to the API:

public MinepacksPlugin getMinepacks() {
    Plugin bukkitPlugin = Bukkit.getPluginManager().getPlugin("Minepacks");
    if(!(bukkitPlugin instanceof MinepacksPlugin)) {
    	// Do something if Minepacks is not available
        return null;
    }
    return (MinepacksPlugin) bukkitPlugin;
}

You can now use the returned MinepacksPlugin object to interact with the Minepacks plugin.