Tebex & Coin Products
Last updated
Last updated
You can use products in Pickle's In-Game Shop from both Tebex and Coins. Here's how to each type!
Go to https://creator.tebex.io/packages, and add (or modify) a package.
Go down to where it says Game Server Commands, and add a command.
Write the PTS Command you want to use, along with it's format. In this example we will give coins. So we'll use pts_givecoins {transaction} {id} 100
to give 100 coins.
Click the gear icon to the right of the command, and set "Require Player To Be Online" to "Execute command even when player is offline"
Save the package, and restart the script in-game to see the package in the store!
(Optional) If adding a coin package that's meant just for buying coins, be sure to add it's package ID to Config.CoinCurrency.packages
.
You can get the package's ID by editing it on Tebex, the number is at the end of the URL.
Open the store using /store and click "Add Product"
Fill out the product's details, then click "Add Command"
Write the PTS Command you want to use, along with it's format. In this example we will give items. So we'll use pts_giveitem bread 10
to give 10 bread.
Save the product, and you are now done! You can always add, remove, and edit these products at any time.