- Go to your Tebex Game Server.
- Add a Global Server Game Command.
- hytalemetrics payment tebex {username} {transaction} {price} {currency}
- Edit the Command Options
- Set "Game Server to Execute" on the relevant server.
- Set "Require Player to Be Online" to "Execute even if the player is offline".
- Set "Execution Rule" to "Execute once per payment and not per package".
- Go to your CraftingStore Admin Commands.
- For each server, create a command:
- "Command Type": Initial
- Server: Select the correct server
- Require player to be Online: false
- Command:
- hytalemetrics payment craftingstore {player} {transaction_id} {cost} USD
- Reach out on Discord for help integrating your custom store.
import net.hytalemetrics.api.MetricsAPI;
MetricsAPI.sendPayment(
"paypal", // provider
"JohnDoe", // username
"tx_12345", // transaction_id
"9.99", // price
"USD", // currency
"VIP Rank" // description
);