Skip to content

Cash Shop TEBEX

Nightwolf edited this page Jun 8, 2020 · 2 revisions

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

Create your Tebex Account

Go to https://server.tebex.io/register and create your account
After that, create a webstore for Onset.
webstore After two screen click on this option for YRPF integration
inte
Copy the secret key in yrpf/server_config in tebexSecretKey field sk
Launch your Onset Server, you will see in the upper right of the webpage that the server is connected with success.

Add your first item in your shop

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.
item

Clone this wiki locally