# Space Engineers

Tebex is the official monetization provider for **Space Engineers**. This guide covers how to install Tebex on both **Vanilla Dedicated Servers** and **TorchAPI**-enabled servers.

***

### Supported Server Types

* **Vanilla Dedicated Server**\
  Basic integration: Supports `/give_item` and `/give_money` commands only.
* **TorchAPI Server**\
  Full integration: Supports custom commands and advanced functionality.

Download the plugin for your server type via your Tebex [Control Panel](https://creator.tebex.io/game-servers).

***

### Install Tebex on a Vanilla Space Engineers Server

> Use this method **only** if you are not running TorchAPI.

#### **Steps**

1. **Download the Plugin**\
   From your Tebex Control Panel, download the latest **Vanilla Tebex Plugin** (`Tebex-SpaceEngineers-VERSION.zip`).

2. **Unpack the Files**\
   Unzip the contents into your server’s root folder.

3. **Launch the Dedicated Server Tool**\
   Open the Space Engineers Dedicated Server and click:

   * `Continue to Server Configuration`

   <figure><img src="https://1152203580-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuI8PwvsHA79mTA-7bh%2Fuploads%2FAyRP8B4Ma1wYDMADu2jS%2Fimage.png?alt=media&#x26;token=a0ec19c3-268c-4f2e-81e0-4e1243384273" alt=""><figcaption></figcaption></figure>

   * Go to the **Plugins** tab
   *

   ```
   <figure><img src="https://1152203580-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuI8PwvsHA79mTA-7bh%2Fuploads%2Fuicbo4UT9X9x5cVQengs%2Fimage.png?alt=media&#x26;token=7cc1a497-1b44-491b-b374-584c24a08d17" alt=""><figcaption></figcaption></figure>
   ```

4. **Add the Plugin DLL**

   * Click **Add** under *Assemblies*
   * Navigate to the unzipped plugin folder and select:\
     `Tebex-SpaceEngineers.dll`
   * Select **Tebex** from the plugin list to open configuration.
   *

   ```
   <figure><img src="https://1152203580-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuI8PwvsHA79mTA-7bh%2Fuploads%2Fvb7X5se7qWuh901NN4vd%2Fimage.png?alt=media&#x26;token=333c06e3-1319-43de-ab3c-0eb48f35aadc" alt=""><figcaption></figcaption></figure>
   ```

5. **Enter Your Secret Key**
   * Copy your secret key from the [Game Servers page](https://creator.tebex.io/game-servers) in your Tebex control panel.
   * Paste it into the **Secret Key** field.
   * Click **Save & Start**

6. **Verify the Plugin**\
   In your server console, you should see output similar to:

   ```plaintext
   plaintextCopyEdit[Tebex] [INFO] Tebex is starting up...
   [Tebex] [INFO] Secret key is set. Loading store info...
   [Tebex] [INFO] Connected to store https://yourstore.tebex.io
   ```

> ✅ Setup is complete once you see the “Connected to store” message.

***

### ⚙️ Install Tebex on a TorchAPI Server

> TorchAPI enables **advanced features** such as custom commands, extended plugin support, and deeper integrations.

#### **Steps**

1. **Download the Plugin**\
   From the control panel, download the **TorchAPI Tebex Plugin** `.zip`.\
   \&#xNAN;*(No need to extract it.)*
2. **Place in Plugins Folder**\
   Move the `.zip` file to the `Plugins` folder of your Torch server installation.\
   ![](https://lh7-us.googleusercontent.com/docsz/AD_4nXcTsGci_nkR3yj0eYDeadJafHZmfH9HHaVMg0IX8c5ljnON2Zmkxa6OZw0XO7mCUbXyqGRRR7RSk-QLiMMVdCmKwFruQGgaOJP9IgjdTu-DynK6csPrugMpPPO0pD__ngvEooSckLz1JihknNPbsHpAuqE?key=cOl3HpAZDF2LKgbTvhwB3g)
3. **Launch TorchAPI**\
   Start the TorchAPI server.
4. **Configure Your Secret Key**
   * **For GUI-based servers**:
     * Go to the **Plugins** tab
     * Select **Tebex**
     * Enter your [**Secret Key**](https://creator.tebex.io/game-servers) and click **Save Config**
   * **For dedicated/headless servers**:

     * Join the server as an owner
     * Run the following in-game command:

     ```plaintext
     !tebex.secret your-secret-key
     ```
5. **Confirm Plugin Status**\
   You should see console output like:

   ```plaintext
   [Tebex] [INFO] Secret key is set. Loading store info...
   [Tebex] [INFO] Connected to store https://yourstore.tebex.io
   ```

***

### Debugging

The plugin runs silently during normal operation.\
To troubleshoot:

* Enable **Debug Mode** via the plugin settings.
* Logs will show detailed activity and errors.

> ⚠️ **Warning**: Do not leave Debug Mode enabled during regular server operation.
