Class PlayerAfkEvent

java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerAfkEvent

public class PlayerAfkEvent extends org.bukkit.event.Event
  • Constructor Details

    • PlayerAfkEvent

      public PlayerAfkEvent(org.bukkit.entity.Player player, PlayerAfkEvent.AFKType afkType)
      Called when a Player goes AFK or comes back from AFK. Check AFKType for more.
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get player
    • getAfkType

      public PlayerAfkEvent.AFKType getAfkType()
      Check if player target went AFK or came back
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()