# Team Fortress 2

Tebex offers direct integration with **Team Fortress 2** using our official **SourceMod plugin**, allowing you to monetize your server by offering in-game perks, items, and access via your Tebex store.

> **Download the Plugin**\
> Get the latest TF2 SourceMod plugin from your [Tebex Control Panel → Plugins section](https://creator.tebex.io/game-servers).

***

### Supported Modding Platform

* **SourceMod**

***

### Installation Guide: SourceMod Plugin

#### 1. **Download and Extract the Plugin**

* Download the **TF2 SourceMod Tebex plugin** zip file.
* Extract it on your local machine — this will produce three folders:

```plaintext
/config
/extensions
/plugins
```

#### 2. **Upload Plugin Files to Your Server**

* Navigate to the `sourcemod/` directory in your TF2 server installation.
* Upload the extracted folders and **merge their contents** with your existing directories:

```plaintext
<YourTF2Server>/tf/addons/sourcemod/
```

> ⚠️ Do not overwrite entire directories — only merge individual files to preserve your current setup.

#### 3. **Restart or Reload the Server**

* Restart your TF2 server to ensure the plugin is loaded properly.

***

### Link Your Tebex Store

After the plugin has been installed:

1. Open your server console.
2. Enter the following command to link your TF2 server with your Tebex store:

<pre class="language-plaintext"><code class="lang-plaintext"><strong>tebex:secret your-secret-key
</strong></code></pre>

> You can find your **secret key** under the [**Game Servers**](https://creator.tebex.io/game-servers) section of the Tebex Control Panel → Click **Edit** next to your server.

***

### Verify Setup

Once linked, you’ll receive a confirmation message in your server console.\
To check plugin functionality, run:

```plaintext
tebex:info
```

This will show server configuration and supported commands.

***

### Advanced Integration Options

Tebex also supports advanced integration tools to customize or extend your TF2 store automation:

* **Webhooks** – Automate external notifications (e.g. Discord bots, CMS triggers).
* **RCON** – Run server commands remotely upon purchase.
* **MySQL** – Sync transactions or player data into your own database.
