Skip to content

Connects a game server and a Tebex webstore together via the Tebex plugin API and RCON.

License

Notifications You must be signed in to change notification settings

tebexio/Tebex-RconAdapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCON Adapter by Tebex

Overview

The RCON Adapter is a C# console application designed to serve as an intermediary between the Tebex API and game servers lacking adequate plugin support.

This utility performs various operations to facilitate Tebex interactions with such game servers, enabling Tebex support on games that would otherwise be difficult or impossible.

Requirements

  • Windows OS or a system with Mono support
  • .NET runtime

Key Features

  • Connect your Tebex webstore to your game server without the use of plugins.
  • Process Tebex transactions and apply commands to your players using the RCON protocol.
  • Deploy and manage at scale using included Dockerfile or build and run an executable.

Installation - Linux

To run in Linux, download the latest Linux version from our Releases page.

  1. Unzip the app.
  2. Navigate to the linux folder in your unzipped archive.
  3. Make the RCON adapter executable with chmod +x ./Tebex-RCON
  4. Launch with ./Tebex-RCON.

Example startup command:

./TebexRCON --ip=127.0.0.1 --port=12345 --pass=password

The app must remain running in the background as it checks periodically with Tebex to execute needed game server commands.

You may also the provided Dockerfile to build and deploy the app from source. If using Docker, you must configure launch arguments via command line or environment variables.

Installation - Windows

To run on Windows, follow these steps:

  1. Download the latest Windows version from our Releases page ex. Tebex-RconAdapter-Win-1.1.0.zip
  2. Unzip the archive, open the folder it was unzipped to, and open the windows folder.
  3. Open a Powershell window here and type ./Tebex-RCON.exe, then press enter.
  4. You will be prompted for your secret key on first startup. You may set your RCON information through any of the configuration options listed below.
  5. After setting and verifying your key, the app will attempt to connect to a default RCON server on localhost. If you require a different IP/port combination follow step #6.
  6. Open tebex-config.json to set your RCON connection's IP, port, and password. Save the file and relaunch ./Tebex-RCON.exe.
  • Note: if you prefer to use command line arguments or environment variables to store your config, see the Configuration section below.

Configuration

Command Line Args

You can configure the RCON adapter directly from the command line with these arguments:

--key={storeKey}         Your webstore's secret key.

--ip={serverIp}          The game server's IP address

--port={serverPort}      Port for RCON connections on the game server

--pass={password}        Password for your game server's RCON console

--debug                  Show debug logging while running

Environment Variables

You can also configure the RCON adapter to use environment variables at launch. Any environment variables that are set below take precedence over any value previously set in the config file or via command line.

Available environment variables:

  • RCON_ADAPTER_KEY
  • RCON_ADAPTER_HOST
  • RCON_ADAPTER_PORT
  • RCON_ADAPTER_PASSWORD

Config File

A configuration file tebex-config.json will be created on first startup. Below is a sample configuration. The app will begin a guided wizard to generate the appropriate config for you.

{
  "SecretKey": "YOUR_TEBEX_SECRET_KEY",
  "RconIp": "127.0.0.1",
  "RconPort": 25565,
  "RconPassword": "YOUR_RCON_PASSWORD"
}

Contributions

We welcome contributions from the community. Please refer to the CONTRIBUTING.md file for more details. By submitting code to us, you agree to the terms set out in the CONTRIBUTING.md file

Support

This repository is only used for developers to submit bug reports and pull requests. If you have found a bug, please open an issue here.

If you are a user requiring support for Tebex, please contact us at https://www.tebex.io/contact

About

Connects a game server and a Tebex webstore together via the Tebex plugin API and RCON.

Resources

License

Stars

Watchers

Forks

Packages

No packages published