Very simple TitleAPI using maven's multi-module system
- Clone this repository
- Enter the directory using
cd TitleAPI - Build & install with Maven using
mvn clean install - Add TitleAPI to your project's
pom.xmlunder<dependencies>:
<dependency>
<groupId>me.bermine.titleapi</groupId>
<artifactId>titleapi-bukkit</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>To use TitleAPI, simply initiate it in your plugins onEnable method:
import me.bermine.titleapi.TitleAPI;
public class ExamplePlugin extends JavaPlugin {
@Override
public void onEnable() {
TitleAPI titleAPI = new TitleAPI(this);
titleAPI.init();
}
}Then you can easily use TitleAPI.sendTitle method to send a title:
TitleAPI.sendTitle(player, "Example title", "Example subTitle", 20L, 20L, 20L);