Package com.andrei1058.bedwars.api
Interface BedWars.AFKUtil
- Enclosing interface:
BedWars
public static interface BedWars.AFKUtil
-
Method Summary
Modifier and TypeMethodDescriptionint
getPlayerTimeAFK
(org.bukkit.entity.Player player) Get the seconds since the player is AFKboolean
isPlayerAFK
(org.bukkit.entity.Player player) Check if a player is AFK.void
setPlayerAFK
(org.bukkit.entity.Player player, boolean value) Set a player afk.
-
Method Details
-
isPlayerAFK
boolean isPlayerAFK(org.bukkit.entity.Player player) Check if a player is AFK. -
setPlayerAFK
void setPlayerAFK(org.bukkit.entity.Player player, boolean value) Set a player afk. -
getPlayerTimeAFK
int getPlayerTimeAFK(org.bukkit.entity.Player player) Get the seconds since the player is AFK
-