Skip to content

LeaveAttemptEvent

Package: dev.despical.tnttag.api.events.game

LeaveAttemptEvent exposes getArena() and getUser(). It is informational and does not implement Cancellable.

@EventHandler
public void onLeave(LeaveAttemptEvent event) {
Player player = event.getUser().getPlayer();
// Clean up integration-specific state.
}