Rewards players with Economy credits for donations on a website

Supported Games
GameServerKingsGameServerKings

This plugin rewards a player with Economy-based credits from a MySQL database for donating to your server.

[I][U]Disclaimer[/U]:[/I] This plugin [B]absolutely[/B] requires some web development experience. You will have to develop your own web application to take payments, hook in Steam data, and save data to your MySQL Database. This plugin will work right out-of-the-box once those requirements are met. I will do my best to answer any and all questions, but I will not develop your web application for you (unless you'd like to pay me, of course). [B][URL='https://github.com/PT-Studios/DonationCreditsWEBCODE']You can find a template web application here[/URL][/B].

[B][U]Default Config[/U][/B]This is where you put your webserver's MySQL information (make sure your Rust Server IP has access).[CODE]{"address": "127.0.0.1","db_name": "my_dbname","password": "password","port": 3306,"user": "username"}[/CODE]

[B][U]Chat Commands[/U][/B]/credits - Reloads and displays a player's current donation statistics./getcredits - Reloads a players donation data and then gives them their donation reward credits (if available)./refreshcredits - Phased out command. Only ask a player to use it if they are not receiving their reward.

[U]Admin Only[/U]/loadcredits - Reloads all current players' donation data./savecredits - Saves all loaded player donation data directly to MySQL database ([B]WARNING:[/B] DO NOT USE THIS BEFORE RELOADING ALL USER DATA).

[B][U]MySQL Structure[/U][/B]Use these to create your MySQL Donations table:[CODE]CREATE TABLE IF NOT EXISTS donations (steam_id bigint(20) NOT NULL,user text NOT NULL,amount bigint(20) NOT NULL DEFAULT '0',total_amount bigint(20) NOT NULL DEFAULT '0',last_date datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,PRIMARY KEY (steam_id),UNIQUE KEY steam_id (steam_id)) ENGINE=InnoDB DEFAULT CHARSET=utf8;[/CODE]

[CODE]DROP TRIGGER IF EXISTS donations_update_date;DELIMITER //CREATE TRIGGER donations_update_date BEFORE UPDATE ON DonationsFOR EACH ROW SET NEW.last_date = CURRENT_TIMESTAMP//DELIMITER ;[/CODE]

[U][B]Demo[/B][/U][B][URL='http://rust.palmtree-studios.net/']See A Demo on Our Server[/URL][URL='https://github.com/PT-Studios/DonationCreditsWEBCODE']Web Application Template [WEBCODE][/URL][/B]

[B][U]Connect to our Server (maybe even donate)[/U][/B][I]> client.connect 103.214.111.202:28016[/I]

[U][B]Future Plans[/B][/U][LIST][]Remove all things related to /refreshcredits[]Item Set Rewards[/LIST]

[B][U]Thank Yous[/U][/B]A Big Thanks to [B][URL='http://oxidemod.org/members/visagalis.63505/']Visagalis[/URL] [/B]for making [URL='http://oxidemod.org/threads/zlevels-remastered.12803/'][B]ZLevels[/B][/URL]... I learned a lot about Rust plugins and MySQL from his code. And of course, [B][URL='http://oxidemod.org/members/nogrod.45547/']Nogrod[/URL] [/B]for [URL='http://oxidemod.org/threads/economics.5985/'][B]Economics [/B][/URL]and [B][URL='http://oxidemod.org/members/domestos.3412/']Domestos[/URL] [/B]for [URL='http://oxidemod.org/threads/helptext.5836/'][B]HelpText[/B][/URL]. Thank you all :)

This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.

8.8K downloads
9 watchers

importedunmaintained