Skip to content

Developer API

TNT Tag exposes Bukkit events for arena lifecycle changes, join and leave attempts, rounds, eliminations, and statistics.

Place the TNT Tag JAR in a libs directory in your project and add it as a compile-only dependency.

dependencies {
compileOnly files('libs/tnt-tag-x.x.x.jar')
}

Add the plugin load dependency:

depend: [TNTTag]
public final class TNTTagListener implements Listener {
@EventHandler
public void onRoundStart(RoundStartEvent event) {
Arena arena = event.getArena();
int round = event.getRound();
// React to this arena's new round.
}
}

Register the listener with Bukkit’s plugin manager during onEnable().