Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AntiAFKProAPI {
- @Inject
- private PlayerController playerController;
- public AntiAFKProAPI(){
- }
- /**
- *
- * @param player The online player whome you wish to get the AFKPlayer of
- * @return An AFKPlayer, or null if player does not exist / not online
- */
- public AFKPlayer getAFKPlayer(Player player){
- if(player == null || !player.isOnline()){
- return null;
- }
- return playerController.getAFKPlayer(player);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement