# PvP Tab Binder

A World of Warcraft MOP Classic addon that automatically changes your Tab keybinding based on whether you're in a PvP instance or not.

## Features

- **Automatic Keybinding**: Changes Tab keybinding to "Target Nearest Enemy" in PvE zones
- **PvP Detection**: Changes Tab keybinding to "Target Nearest Enemy Player" in PvP instances (Battlegrounds and Arenas)
- **Persistent Settings**: Remembers your preferences across sessions
- **Easy Control**: Simple slash commands to control the addon

## Installation

1. Download the addon files
2. Extract the `PvPTabBinder` folder to your WoW addons directory:
   - `World of Warcraft/_classic_/Interface/AddOns/`
3. Restart WoW or reload your UI (`/reload`)
4. The addon will automatically start working

## Usage

The addon works automatically once installed. It will:

- Set Tab to "Target Nearest Enemy" when in PvE zones
- Set Tab to "Target Nearest Enemy Player" when in PvP instances
- Display a message when the keybinding changes

### Slash Commands

- `/pvtb` or `/pvptabbinder` - Show help
- `/pvtb toggle` - Toggle the addon on/off
- `/pvtb on` - Enable the addon
- `/pvtb off` - Disable the addon
- `/pvtb status` - Show current status and zone type

## How It Works

The addon monitors zone changes and automatically updates your Tab keybinding:

- **PvE Zones**: Tab targets the nearest enemy (including NPCs)
- **PvP Instances**: Tab targets only the nearest enemy player (excludes NPCs)

This is particularly useful for:
- Battlegrounds where you want to target players, not NPCs
- Arenas where you need precise player targeting
- Open world PvP where you might want to target NPCs

## Requirements

- World of Warcraft MOP Classic (Interface 50400)
- No additional dependencies

## Version History

- **1.0.0**: Initial release with basic functionality

## Support

If you encounter any issues or have suggestions, please report them through your preferred addon platform.

## License

This addon is provided as-is for personal use. 