If you are using essentials, go to the file manager, "plugins", "Essentials" folder, config.yml, then scroll down until you see the AFK timer (454th line)
Save, then go into the console, and type in /essentials reload or restart your server. Hope this helped!