Hallo ich bin dabei ein vote plugin zu programieren aber mann soll/kann diesen Command nur alle 24h ausführen also so gesehen meine frage ist wie man eine zeit abfrage machen kann? Danke im Voraus
Here Hello I'm about to program a vote plugin but man should / can run this command only every 24h so seen my question is how to make a time query? thank you in advance
I would suggest storing the data of the last voted with time function (https://www.php.net/manual/en/function.time.php) and add 1 day as seconds, then, when a player runs the command check if timeStored < timeRigthNow if yes update the stored data with time and if no send the error message.