duration - Time window in minutes (default: 5, max: 1440)
Response:
1 - Player has voted
0 - Player has not voted
PHP Example (3 hours verification):
<?php
$vote_verif = file_get_contents('https://www.hytale-servers.best/api/vote-verification?server_id=YOUR_SERVER_ID&ip=127.0.0.1&duration=180');
if($vote_verif == 1) {
echo "Player has voted in the last 3 hours";
} else if($vote_verif == 0) {
echo "Player has not voted in the last 3 hours";
}
?>
Verify you're human
Please complete the verification below to vote
Vote recorded!
Thanks for your vote! You can vote again in 3 hours.