Are you tired of the default AFK mechanics which have limited options?
Well I've made this brand-new plugin to fullfill your requests!
We provide a simple and lightweight code which adds many new mechanics to the AFK system:
You'll be able to choose custom actions to interact and manage your AFK players,
and most importantly you can choose the punishment for the AFK players in your server!
[+] Detects many AFK Machines [+] Detects Auto-Clicking and other macros [+] Execute every Command [+] Play Sounds [+] Send warning Messages [+] Send Player to other Server (BungeeCord) [+] Teleport Player Back to there old Position [+] You are not limited by anything [+] Very easy to use GUI [+] Everything can be changed In-Game [+] Everything is customisable [+] very lightweight Plugin [+] All Version compatible [+] Developer API
Command - Description - Permission /antiafk - Open the Admin GUI - antiafkplus.admin /antiafk reload- Reload the Plugin - antiafkplus.reload
AntiAFKPlus.bypass - Bypasses the AFK Checks
Events
AfkStatusChangedEvent
API
Code (Java):
publicinterface AntiAFKPlusAPI
{
/** * Returns how much checks the Player failed * * @param player the Player to check * @return amount of checks failed */ int getChecksFailed
(Player player
);
/** * Returns the Check Interval configured in the config.yml * * @return the check interval in seconds */ int getCheckInterval
();
/** * Returns <tt>true</tt> if the Player failed at least Check * * @param player the Player to check * @return <tt>true</tt> if player failed one AFK check * */ boolean isAFK
(Player player
);
/** * Returns <tt>true</tt> if Player got teleported while AFK * * @param player the Player to check * @return <tt>true</tt> if Player got teleported */ boolean isTeleported
(Player player
);
/** * Returns a {@link List} view of {@link Player} players. * This players failed at least on AFK Check. * * @return a list of players who did not pass one AFK check */ List
<Player
> getAFKPlayers
();
/** * Returns a {@link List} view of {@link Player} players. * This players failed at least the given Amount of Checks. * * @param failedChecks amount of failed Checks * @return a list of players who did not pass the AFK checks */ List
<Player
> getAFKPlayers
(int failedChecks
);
/** * Create a new API Instance to work with * * @return API Instance */ static AntiAFKPlusAPI getAPI
(); }