[+] Added a new ActionNode: BYPASSPERMISSION - This will allow you to set a permission meaning if players have that permission, the action will not be performed on them:
Example:
Code (Text):
afk:
300: #300 seconds = 5 minutes
- "BYPASSPERMISSION|antiafkpro.admin" #If they have this permission, the action will not execute - so they will not be kicked
- "COMMAND|kick %PLAYER% You have been kicked as you have been AFK for 5 minutes"
[+] Added a config option so that if a player speaks, it will reset their AFK time. If you want to configure this option, add this to your config.yml
Code (Text):
#If a player types/speaks, would you like this to reset the players AFK time to 0 (So speaking means players are not considered AFK)
should_player_be_afk_if_speaks: false #false = If a player speaks, they will still be considered AFK if they do not move