Class PlayerEvent

java.lang.Object
org.bukkit.event.Event
dev.despical.tntrun.api.event.TNTRunEvent
dev.despical.tntrun.api.event.player.PlayerEvent
Direct Known Subclasses:
PlayerDoubleJumpEvent, PlayerEliminateEvent, PlayerJoinAttemptEvent, PlayerLeaveGameEvent, PlayerStatisticChangeEvent

public abstract class PlayerEvent extends TNTRunEvent
Base class for TNTRun events associated with a single Bukkit player.

Use getPlayer() for Bukkit operations and getUser() for TNTRun-specific state such as statistics, spectator state, and arena data.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final @NotNull User
    Returns the plugin-specific User for this player.
    Returns a compact debug representation containing the player name.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PlayerEvent

      public PlayerEvent()
  • Method Details

    • getUser

      @NotNull public final @NotNull User getUser()
      Returns the plugin-specific User for this player.
      Returns:
      the User object representing the player
    • toString

      public String toString()
      Returns a compact debug representation containing the player name.
      Overrides:
      toString in class Object
      Returns:
      a string containing the event player