LogoLogo
  • Introducing Tebex
    • Why Tebex?
  • Pricing
    • Starter & Plus Plans
    • Fees Overview
      • Why We Charge a Platform Fee
  • Initial Setup
    • General checklist for setting up a Tebex store
    • Identity Verification for Tebex Store Onboarding
    • Your Store Review
    • Tips for getting your store application approved
    • What is Intellectual Property?
    • Adult Content Guidelines
  • Tebex Control Panel
    • Dashboard
    • Payments
      • Manual Payments
      • Recurring Payments
      • Payment Methods
      • Checkout Settings
      • Fraud Analysis
      • Wallet
      • Payment Exports
    • Packages
      • How To Create A Package
      • How To Create A Category
      • How To Test A Package
    • Statistics
    • Customers
      • Customer Lookup
      • Customer Bans
    • Webstore
      • Appearance
        • Our Footer
      • Sidebar Modules
      • Pages
      • Variables
        • Template Variables
      • Currency
        • Regional Pricing
      • Translations
        • Language
        • Custom Translations
      • Emails
      • Domains
        • Subdomain & Custom Domain
      • Notifications
        • Slack & Discord Notifications
    • Engagement
      • Coupon Codes
      • Sales
      • Creator Codes
      • Gift Cards
      • Community Goals
      • Abandoned Basket Recovery
      • Purchase Follow Ups
      • Upselling
      • Offers
    • Game Servers
      • FiveM
        • FiveM (Server Wrapper)
      • Minecraft: Java Edition
        • BuycraftX
      • ARK: Survival Evolved
      • Minecraft: Bedrock Edition
      • Space Engineers
        • Space Engineers Item IDs
        • How the Legacy Space Engineers Vanilla Integration Works
        • Mod Guidelines and FAQs
      • Unturned
      • Rust
      • Garry's Mod
      • Hurtworld
      • Counter Strike: GO
      • 7 Days To Die
      • Team Fortress 2
      • Conan Exiles
      • RCON (Legacy)
      • RCON Adapter
      • MySQL Depreciation
    • Discord Servers
    • Store Transfers
    • Team Accounts
    • Billing
      • Store Cancellation
  • Tebex Checkout
    • How Payments Work
    • Seller Protection and Chargebacks
    • Where and Why We Charge Sales Tax/VAT
      • Information for Accountants
    • Checkout Process
    • Paysafecard
    • Wallet
    • Wallet Restrictions - Deposits & Locks
    • Fund Withdrawals and Transfers
      • PayPal Withdrawal Fees
      • Bank Account Withdrawal Fees
      • Wire Transfer List of Countries & Fees
    • Checkout FAQ
    • Seller Support Guidance
    • Checkout Seller Actions
      • Changing Usernames
      • Changing Discord ID's
      • Resending Commands
      • Customer Lookup
      • Checkout Bans
    • Tebex Checkout for WHMCS
  • Subscribe @ Tebex Academy
  • Developer Documentation
  • FAQs
  • Growth and Success
    • 🛒Tebex Store Best Practices
    • 📆Sales Calendar - 2025
    • 🎁Gift Cards
    • 💬Community Engagement
    • ❓Frequently asked questions
    • 🚗FiveM Best Practices for Packages
    • 🥼FiveM Beta Assets Best practices
    • 📖Creator Success: Case Studies
      • 🚛Reducing Support Backlog through Restructuring the Team
      • 🔁Improving User Retention via “Loss Leader”
      • 📅Subscription Stability and Growth
  • Command Management
    • An Introduction To Commands
    • Command Troubleshooting
    • Resending Commands
    • Support for Epic Game IDs
Powered by GitBook
On this page
  • Custom Plugins
  • Modifying the Companion Plugin - Video Guide

Was this helpful?

  1. Tebex Control Panel
  2. Game Servers
  3. Space Engineers

How the Legacy Space Engineers Vanilla Integration Works

PreviousSpace Engineers Item IDsNextMod Guidelines and FAQs

Last updated 11 days ago

Was this helpful?

This guide is for the previous version of our Space Engineers plugin. For the most relevant documentation and easier setup, please check out our new . There's a .

Our legacy integration for Space Engineers Vanilla servers is a little different from most servers. This is to provide the most flexibility possible for server owners who want to provide unique rewards, without the availability of console commands.

TebexSE.dll (the main plugin for Space Engineers) can let your server (and other plugins) know about purchases that have been made in two ways:

  • Via an event, TebexSE.TebexSE.tebexPurchaseEvent.TebexPurchaseReceived that can be subscribed to in other plugins.

  • Via chat messages in the GlobalScripted chat channel that can be listened for and reacted to.

We recommend using the event where possible.

As a way to get started quickly, we also provide a companion plugin for Space Engineers, which provides the following commands. In each command, the {id} placeholder should be used as-is - we automatically replace this with the steam64 id of the purchasing player, but anything in square bracket should be replaced by you

  • !giveitem {id} [parttype] [amount] (e.g. !giveitem {id} Ingot/Iron 10)

  • !givemoney {id} [amount] (e.g. !givemoney {id} 1000)

  • !reserveslot {id}

  • !unreserveslot {id}

  • !rank {id} [rank] (e.g. !rank {id} Scripter)

  • !say [message] (e.g. !say Thanks for your purchase)

If you wish to use the companion plugin, you can .

Custom Plugins

If you wish to provide your own custom rewards for purchases, you can create your own plugin to subscribe to the TebexPurchaseReceived event, or you can extend the companion plugin.

If you are creating your own plugin, you would create a handler function to act when a purchase is made - the 'command' that is entered in the Tebex control panel is sent in it's entirety through the event, so it is up to you to parse this command and perform relevant actions. This might look something like:

//Called by Space Engineers when the server is ready
public void Init(object gameInstance) {
    //Subscribe to the event
    TebexSE.TebexSE.tebexPurchaseEvent.TebexPurchaseReceived += TebexPurchaseEvent_TebexPurchaseReceivedHandler;
}

private void TebexPurchaseEvent_TebexPurchaseReceivedHandler(string details) {
    if (details.StartsWith("!myplugin")) {
        //This is a command that this plugin is responsible for
        //So do something :-)
    }
}

In order to subscribe to the event, you will need to add TebexSE.dll (the main plugin) as a reference to your project.

Modifying the Companion Plugin - Video Guide

This video will show Ted downloading, setting up and modifying the TebexSE companion plugin, to add a new !fulllife command:

If you don't wish to create a plugin from scratch, our companion plugin is available on GitHub at . You can then add additional actions to this plugin, which already handles subscribing to the event. To extend this plugin, you will need to update some of the references - these are all dlls available from the Space Engineers Vanilla server, and TebexSE.dll which can be downloaded from your control panel.

Vanilla Space Engineers plugin
Torch API version here, too
download it here
https://github.com/tebexio/Tebex-SE-Consumer