Class PlayerAfkEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerAfkEvent
public class PlayerAfkEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerAfkEvent
(org.bukkit.entity.Player player, PlayerAfkEvent.AFKType afkType) Called when a Player goes AFK or comes back from AFK. -
Method Summary
Modifier and TypeMethodDescriptionCheck if player target went AFK or came backstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get playerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerAfkEvent
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
Check if player target went AFK or came back -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-