Free and reliable backpack plugin for Bukkit/Spigot/Paper
Go to file
2019-10-16 19:44:10 +02:00
src/at/pcgamingfreaks/Minepacks/Bukkit/API Add ItemFilter API 2019-10-16 19:44:10 +02:00
.gitattributes Init API release 2019-05-10 01:40:49 +02:00
.gitignore Init API release 2019-05-10 01:40:49 +02:00
.travis.yml Init API release 2019-05-10 01:40:49 +02:00
LICENSE Init API release 2019-05-10 01:40:49 +02:00
pom.xml Add ItemFilter API 2019-10-16 19:44:10 +02:00
README.md Update readme 2019-06-16 16:24:37 +02: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.0</version><!-- Check api-version shield for newest version -->
</dependency>

Build from source:

git clone https://github.com/GeorgH93/Minepacks.git
cd Minepacks
git checkout --track origin/API
mvn clean install

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.