-
Notifications
You must be signed in to change notification settings - Fork 1
Cash Shop TEBEX
YRPF provide a API for Tebex (https://www.tebex.io/)
The API allow you to monetize your server with item packages.
(Only "item" is supported for now)
Demo: https://www.youtube.com/watch?v=WrFiwIkwGrA
Go to https://server.tebex.io/register and create your account
After that, create a webstore for Onset.
After two screen click on this option for YRPF integration
Copy the secret key in yrpf/server_config in tebexSecretKey field
Launch your Onset Server, you will see in the upper right of the webpage that the server is connected with success.
Tebex allow you to put item for sell on your webstore.
For that create a "package" on Tebex.
Select "Game Package".
Put a name, a image, a price and select the webstore for the package in "Servers".
At the bottom of the page you need to create new event.
Click on "Add Event" and put the following command into it :
In the SelectBox select "When a player purchase this package" and purchase_item 6 10
This command will add a item to the player when it will be connected so he will receive the item id=6 (Bananas) x 10.