Class AFKTracker


  • public class AFKTracker
    extends java.lang.Object
    Keeps track how long player has been afk during a session
    • Constructor Detail

      • AFKTracker

        public AFKTracker​(PlanConfig config)
    • Method Detail

      • getAfkThreshold

        public long getAfkThreshold()
      • hasIgnorePermission

        public void hasIgnorePermission​(java.util.UUID uuid)
      • usedAfkCommand

        public void usedAfkCommand​(java.util.UUID uuid,
                                   long time)
      • performedAction

        public long performedAction​(java.util.UUID uuid,
                                    long time)
      • loggedOut

        public long loggedOut​(java.util.UUID uuid,
                              long time)
      • isAfk

        public boolean isAfk​(java.util.UUID uuid)