Guest User

Untitled

a guest
Jan 15th, 2019
330
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class AntiAFKProAPI {
  2.  
  3. @Inject
  4. private PlayerController playerController;
  5.  
  6.  
  7. public AntiAFKProAPI(){
  8. }
  9.  
  10.  
  11. /**
  12. *
  13. * @param player The online player whome you wish to get the AFKPlayer of
  14. * @return An AFKPlayer, or null if player does not exist / not online
  15. */
  16. public AFKPlayer getAFKPlayer(Player player){
  17. if(player == null || !player.isOnline()){
  18. return null;
  19. }
  20. return playerController.getAFKPlayer(player);
  21. }
  22.  
  23. }
RAW Paste Data