how to add a cooldown on eating food? like when u ate 2 gapples, u cant eat another one before a 15 second cooldown
create a json DB, keep incrementing the player's index everytime he eats an apple, then check if value >= 2, if yes, unset the player's value and put the player in the array with the value of time(), PlayerConsumeItemEvent, check if item is apple, check if player is in array, check if array time + 15 >= time(); if yes, unset the player In the array