This plugin analyzes likes and share on people timeline on facebook in exchange for items on the server. I made this plugin in 2016, I was going to publish it on the bukkit website, but I never published it out of laziness.
I tested and used it on my server, and it is 100% working.
download php side and full config on mediafire:
https://www.mediafire.com/file/a01qlica6lgd68r/RewardFb.zip/file
As this plugin does not use bukkit features, only ConsoleCommand works in all spigot/bukkit versions and is flexible to do anything you can do with commands from the console.
You need to create an app at
https://developers.facebook.com/ and enter the ID-Token in the config.yml so the PHP-SIDE will analyze the user's timeline and if he has shared the specified facebook page on config.yml.
the people-email-player it will be placed in a mysql database that is periodically read by rewardfb.jar to reward players using console commands.
facebook id/token from developers.facebook.com
reward.jar config.yml
list all code style html php facebook-api and config.ini
player nick to receive the rewards
my players nick
Message stating that you meet the requirements and will receive the reward.
Message stating that it is necessary to like and share the page to receive the reward.
Message if the email has already been used by a player.
