# AFK Timer - World of Warcraft Classic Era Addon
A simple addon that tracks your AFK time and warns you before disconnection (30 minutes) in World of Warcraft Classic Era Anniversary Edition.
## Features
- **20-minute countdown timer** that resets on any player action
- **Visual timer display** with color-coded warnings
- **Audio alerts** when 1 minute remains
- **Screen flashing** for urgent warnings
- **Draggable interface** - right-click to move
- **Right-click menu** for settings
- **Slash commands** for easy control
## Installation
1. Copy the `AFKTimer` folder to your WoW Classic Era AddOns directory:
- Windows: `World of Warcraft\_classic_era_\Interface\AddOns\`
- Mac: `World of Warcraft/_classic_era_/Interface/AddOns/`
2. Restart World of Warcraft or reload your UI (`/reload`)
3. The addon will automatically load and start tracking
## Usage
### Slash Commands
- `/afktimer` or `/afk` - Toggle timer on/off
- `/afktimer reset` - Reset the timer
- `/afktimer show` - Show the timer display
- `/afktimer hide` - Hide the timer display
### Interface
- **Drag** the timer display to move it around
- **Right-click** the timer for options menu
- **Timer colors**:
- White: Normal (5+ minutes remaining)
- Yellow: Warning (1-5 minutes remaining)
- Red: Critical (less than 1 minute remaining)
### Settings
- Enable/disable the timer
- Toggle sound alerts
- Toggle screen flashing
- Timer position is automatically saved
## How It Works
The addon tracks the following actions to reset the timer:
- Player movement
- Spell casting
- Combat engagement
- Any keyboard/mouse input
When no action is detected for 30 minutes, you'll be disconnected by the game. This addon gives you a visual countdown and warnings to prevent that.
## Compatibility
- **WoW Classic Era Anniversary Edition** (Interface version 11403)
- Compatible with other addons
- Settings are saved between sessions
## Troubleshooting
If the addon isn't working:
1. Check that it's enabled in the AddOns menu
2. Try `/reload` to reload the UI
3. Use `/afktimer` to toggle it on/off
4. Check the chat for any error messages

