Configuration

All configuration is done in the config.lua file. This file is not escrowed and can be freely edited.

Time Units

The resource includes convenient time unit constants for easy configuration:

seconds = 1000      -- 1 second in milliseconds
minutes = 60000     -- 1 minute in milliseconds
hours = 3600000     -- 1 hour in milliseconds
days = 86400000     -- 1 day in milliseconds

Basic Configuration

Debug Mode

Config.Debug = true  -- Enable debug logging (true/false)

When enabled, the resource will output detailed information to the server console:

  • AFK time for each player

  • Warning triggers

  • Kick events

  • Whitelist checks

Recommended: Keep this enabled during initial setup and testing, disable in production for better performance.

AFK Timers

Important Notes:

  • AFKtimeWarning should be less than AFKtimeKick

  • All times are in milliseconds (use the time unit constants for clarity)

  • AFKtime is currently used as a reference; AFKtimeKick is the actual kick timer

  • The warning is sent when AFKtimeWarning is reached

  • The player is kicked when AFKtimeKick is reached

Example Configurations:

Messages

Last updated