这个东西是什么
Tebex 和服务器 RCON 之间的适配器/后端,不是玩家打开购买的网页。
预览说明
这个项目不是完整商城前台,不能直接像 PHP 店铺那样点购买。这里给你看源码说明、目录用途和关键代码,方便判断它是不是你要的东西。
README
# 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](https://github.com/tebexio/Tebex-RconAdapter/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](https://github.com/tebexio/Tebex-RconAdapter/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.
```json
{
"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
项目结构
.gitignore build.sh CONTRIBUTING.md LICENSE README.md Tebex-RCON.sln Tebex-RCON/Program.cs Tebex-RCON/Tebex-RCON.csproj Tebex-RCON/TebexInk.ico Test/update_servers.sh deploy/docker/Dockerfile deploy/linux-digitalocean/pack.sh deploy/linux-digitalocean/Tebex-RCONAdapter.service Tebex-RCON/Plugins/ArkPlugin.cs Tebex-RCON/Plugins/ConanExilesPlugin.cs Tebex-RCON/Plugins/MinecraftPlugin.cs Tebex-RCON/Plugins/RustPlugin.cs Tebex-RCON/Plugins/SevenDaysPlugin.cs Tebex-RCON/RCON/TebexRconAdapter.cs Tebex-RCON/Tebex/BaseTebexAdapter.cs Tebex-RCON/Tebex/PluginEvent.cs Tebex-RCON/Tebex/TebexApi.cs Tebex-RCON/Tebex/TebexPlatform.cs Tebex-RCON/Tebex/TebexTelemetry.cs Tebex-RCON/Tebex/TebexTriage.cs Tebex-RCON/Util/Ansi.cs Tebex-RCON/Util/Intent.cs deploy/linux-digitalocean/etc/motd deploy/linux-digitalocean/root/configure.sh deploy/linux-digitalocean/root/logs.sh deploy/linux-digitalocean/root/start.sh deploy/linux-digitalocean/root/stop.sh Tebex-RCON/RCON/Protocol/BattleNetRcon.cs Tebex-RCON/RCON/Protocol/RconConnection.cs Tebex-RCON/RCON/Protocol/RconPacket.cs Tebex-RCON/RCON/Protocol/RconPlugin.cs Tebex-RCON/RCON/Protocol/RconResponse.cs Tebex-RCON/RCON/Protocol/TelnetRcon.cs Tebex-RCON/RCON/Protocol/WebsocketRcon.cs