How the Legacy Space Engineers Vanilla Integration Works
Legacy Integration Guide – Space Engineers Vanilla (Tebex Plugin)
⚠️ This guide is for legacy use only.
For the latest and easiest setup, we recommend the current Tebex Vanilla plugin and our TorchAPI version.
Overview
The legacy Tebex plugin for Space Engineers Vanilla allows you to reward players without relying on console commands — giving you flexibility when building custom server experiences.
You can integrate Tebex in two ways:
Using the Companion Plugin: Trigger prebuilt reward commands like !giveitem and !givemoney.
Creating a Custom Plugin: Listen for purchase events and write your own logic.
Tebex Event Communication
The main plugin (TebexSE.dll) notifies your server of incoming purchases via:
An event:
TebexSE.TebexSE.tebexPurchaseEvent.TebexPurchaseReceived
(Recommended for plugin developers)
A chat message in the GlobalScripted channel
(Use this for modding or scripts that respond to chat)
Option 1: Use the Companion Plugin
We provide a prebuilt plugin that supports several basic reward commands:
Available Commands
Replace anything in [square brackets] with actual values. Keep {id} as-is — it auto-inserts the Steam64 ID of the purchaser.
!giveitem {id} [ItemID] [Amount] // e.g. !giveitem {id} Ingot/Iron 10
!givemoney {id} [Amount] // e.g. !givemoney {id} 1000
!reserveslot {id}
!unreserveslot {id}
!rank {id} [RankName] // e.g. !rank {id} Scripter
!say [Message] // e.g. !say Thanks for your purchase
csharpCopyEdit// Called by Space Engineers when the server is ready
public void Init(object gameInstance) {
TebexSE.TebexSE.tebexPurchaseEvent.TebexPurchaseReceived += TebexPurchaseEvent_TebexPurchaseReceivedHandler;
}
private void TebexPurchaseEvent_TebexPurchaseReceivedHandler(string details) {
if (details.StartsWith("!myplugin")) {
// Handle your custom command
}
}