UltraAFK API║1.8/1.16.2║The Most Annoying AFK API System for your Players!║ 1.1

⭐✅The Best AFK API System!✅ ║✯Supported MultiWorld & BungeeCord!✯║⭐

  1. HotDoctor
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Simple Jar File Cleaned only with the API for my plugin UltraAFK.

    For use this api requires UltraAFK 9.8 D Version.

    Requested by @AlonsoAliaga

    Call the API:
    Code (Java):

    UltraAFKAPI instance = UltraAFKAPI.getAPI();
    Check if player is AFK
    Code (Java):

    boolean isAFK = instance.isPlayerAFK(Player);
    Check Player Files/YamlConfigurations, for get plugin data.
    Code (Java):

    File file = instance.getPlayerFile(Player);
    YamlConfiguration configuration = instance.getConfigFile(Player);
    Check if server is using UltraAFK as BungeeCord or MultiWorld Server
    Code (Java):

    boolean mode = instance.isBungeeCordServer();
    boolean mode = instance.isMultiWorldServer();
    Getting ServerMode and AFKMode
    Code (Java):

    Modes serverMode = instance.getServerMode();
    AFKModes afkMode = instance.getAFKMode();
    Code (Java):

    // Modes Enum:

    //AFKModes Enum:

    Get the Current time of a Player
    Code (Java):

    // if Player is AFK it will returns the time that the player has as afk.
    // if Player is not AFK it will returns the time that plugin has checked the player as "inactive" if player is being detected as "active" it will returns 0

    int time = instance.getTimeOfPlayer(Player);
    Get AFK Detection Delay of a Player
    Code (Java):

    // Returns the time that is setted in config.yml, in this case, the afk detection delay. This includes if mode is PerPermissions or Singular.

    int afkTime = getAFKTimeOfPlayer(Player);
    Get AFKZone Locations
    Code (Java):

    //Returns a list of locations, depending if server has more than one location

    List<Location> locations = instance.getAFKZoneLocations();

Recent Updates

  1. New update entry