Hello! I'm willing to create a some sort of lottery mod that has a general time and there are 2 types of lotteries that players can join. In each of them they can get points and the player with the most points when lottery_time expires wins.
The question is where to put function that checks if lottery_time < timestamp and then add dark_matter to winner and reset whole table and add 3600s to lottery time? Should I write it in the cronjobs.php or can I write it in the page.php?
The question is where to put function that checks if lottery_time < timestamp and then add dark_matter to winner and reset whole table and add 3600s to lottery time? Should I write it in the cronjobs.php or can I write it in the page.php?