Studio Documentation

Developer API

Last modified: 9 November 2026

NzKoth fires Bukkit events you can listen to from your own plugin. All of them extend KothEvent, which gives the koth with koth().

EventWhenExtra
KothStartEventA koth starts-
KothCaptureStartEventA player starts capturingplayer()
KothCaptureStopEventNobody is capturing anymore-
KothEndEventA koth endswinner() (null if no winner)

Package: dev.d4nilpzz.nzKoth.api.event

@EventHandler
public void onKothEnd(KothEndEvent event) {
    if (event.winner() != null) {
        getLogger().info(event.winner().getName() + " won " + event.koth().name());
    }
}

Add NzKoth to depend or softdepend in your plugin.yml.