Rewards Script Installation Guide

1. Downloading the Script

Icon Download Rewards Script

2. Script Configuration

First, you need to edit the database connection fields.

define('DB_HOSTNAME', 'localhost'); // Database host
define('DB_USERNAME', 'root'); // Database username
define('DB_PASSWORD', '123123'); // User password
define('DB_DATABASE', 'samplecraft'); // Database name

3. Setting the Secret Key

The secret key is unique for each project, so you must insert your own key into the script.

define('SECRET_KEY', 'YOUR SECRET KEY'); // Use the key from the project editing page (field "Project Secret Key")

4. Configuring Rewards

Set up rewards for the iConomy plugin or REDEEM:

$query = "UPDATE `iconomy` SET `balance`=`balance`+100 WHERE `username`='$username'";

$query = "INSERT INTO `redeem` (`player`, `item`) VALUES('$username', 1)";

5. Uploading the Script to Hosting

After configuring the script, upload it to your website.

6. Syncing with the Website

After uploading the script to your site, specify the full URL to the script in step "7" (Rewards Check). This way, you indicate where vote information for your project will be sent.

icon

Attention! The URL must start with http:// or https://

Also, if you have an Anti-DDoS system, make sure the script is added to the exceptions/whitelist.

7. Checking Rewards Functionality

After uploading the script to your site, enter the full URL to the script in step "7" (Rewards Check). This tells the system where to send vote information for your project.

8. Installation Complete!

If you followed the instructions carefully, the script is now working. More players will vote for your project, and it will climb the rankings faster.