Developer API
TNT Tag exposes Bukkit events for arena lifecycle changes, join and leave attempts, rounds, eliminations, and statistics.
Dependency Setup
Section titled “Dependency Setup”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')}dependencies { compileOnly(files("libs/tnt-tag-x.x.x.jar"))}<dependency> <groupId>dev.despical</groupId> <artifactId>tnt-tag</artifactId> <version>LATEST</version> <scope>system</scope> <systemPath>${project.basedir}/libs/tnt-tag-x.x.x.jar</systemPath></dependency>Add the plugin load dependency:
depend: [TNTTag]Listener Example
Section titled “Listener Example”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().