This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// get reCAPTCHA verification code | |
if (isset($_POST['g-recaptcha-response'])) $captcha = $_POST['g-recaptcha-response']; | |
// check with Google's servers if the captcha is valid | |
$captchaSuccess = false; | |
if (isset($captcha)) { | |
$captchaKey = 'YOUR SECRET KEY'; | |
$captchaURL = 'https://www.google.com/recaptcha/api/siteverify?secret='; | |
$response = json_decode(file_get_contents($captchaURL . $captchaKey . '&response=' . $captcha)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
AUTHOR: Dev_Richard (https://www.spigotmc.org/members/dev_richard.38792/) | |
DESC: A simple and easy to use class that can get and set a player's total experience points. | |
Feel free to use this class in both public and private plugins, however if you release your | |
plugin please link to this gist publicly so that others can contribute and benefit from it. | |
*/ | |
import java.math.BigDecimal; | |
import java.util.List; |