Class PlayerEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
Direct Known Subclasses:
AsyncPlayerChatEvent, PlayerAdvancementDoneEvent, PlayerAnimationEvent, PlayerBedEnterEvent, PlayerBedLeaveEvent, PlayerBucketEntityEvent, PlayerBucketEvent, PlayerChangedMainHandEvent, PlayerChangedWorldEvent, PlayerChannelEvent, PlayerChatEvent, PlayerChatTabCompleteEvent, PlayerCommandPreprocessEvent, PlayerCommandSendEvent, PlayerDropItemEvent, PlayerEditBookEvent, PlayerEggThrowEvent, PlayerExpChangeEvent, PlayerExpCooldownChangeEvent, PlayerFishEvent, PlayerGameModeChangeEvent, PlayerHarvestBlockEvent, PlayerHideEntityEvent, PlayerInteractEntityEvent, PlayerInteractEvent, PlayerItemBreakEvent, PlayerItemConsumeEvent, PlayerItemDamageEvent, PlayerItemHeldEvent, PlayerItemMendEvent, PlayerJoinEvent, PlayerKickEvent, PlayerLevelChangeEvent, PlayerLinksSendEvent, PlayerLocaleChangeEvent, PlayerLoginEvent, PlayerMoveEvent, PlayerPickupItemEvent, PlayerQuitEvent, PlayerRecipeBookClickEvent, PlayerRecipeBookSettingsChangeEvent, PlayerRecipeDiscoverEvent, PlayerResourcePackStatusEvent, PlayerRespawnEvent, PlayerRiptideEvent, PlayerShearEntityEvent, PlayerShowEntityEvent, PlayerSignOpenEvent, PlayerSpawnChangeEvent, PlayerSpawnLocationEvent, PlayerStatisticIncrementEvent, PlayerSwapHandItemsEvent, PlayerTakeLecternBookEvent, PlayerToggleFlightEvent, PlayerToggleSneakEvent, PlayerToggleSprintEvent, PlayerVelocityEvent

public abstract class PlayerEvent extends Event
Represents a player related event
  • Field Details

    • player

      protected Player player
  • Constructor Details

    • PlayerEvent

      public PlayerEvent(@NotNull Player who)
  • Method Details

    • getPlayer

      @NotNull public final Player getPlayer()
      Returns the player involved in this event
      Returns:
      Player who is involved in this event