Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
2,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement