WARNING! HAPI is in a beta state and is not recommended for use in production servers, expect major changes in API!
HAPI (HazeDev's API) is an API to assist in the creation of Spigot plugins. This is targeted for developers who write a lot of features for a single server.
HapiExample is an example of a plugin created using HAPI, Feel free to clone it.
You can add HAPI as a maven dependency in your poject:
<repository>
<id>hazedev</id>
<url>https://hazedev.me/jenkins/plugin/repository/everything/</url>
</repository><dependency>
<groupId>me.hazedev</groupId>
<artifactId>HAPI</artifactId>
<version>1.1.3</version>
<scope>compile</scope>
</dependency>However you must include HAPI in your final Jar, you can configure the shade plugin to do that:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>me.hazedev:HAPI</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>- Components
- Command API
- Config API
- Log Utils
- Custom Events (Some require a component to be enabled e.g. FirstJoinEvent is called by JoinQuitHandler component)
- QuestAPI
- PlayerDataManager
- Statistics API
- Economy API - With Vault support
- Validation Utils - Mainly used by CommandHandlers
- Inventory/Item Utils
- ChatUtils
- BossBarComponent
- Essential Components