- Go to your HyStore Dashboard -> Packages.
- Package -> Create/edit
- For each package, create a command with the following settings:
- Require Online: False
- hytalemetrics payment hystore {username} {transaction} {price} {currency} {description}
- Price: Set your own price!
- Go to your Tebex Game Server.
- Add a Global Server Game Command.
- hytalemetrics payment tebex {username} {transaction} {price} {currency} {description}
- 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 {description}
- 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
);