I would like the speiler only every 24 hours /? Can give
how do I do that?
You have several options here.
On the plugin page for your Minecraft server software, search for a plugin that makes this possible.
For example, here is a suitable plugin for Spigot: https://www.spigotmc.org/...own.73696/
If that doesn't suit you, you can also hire a Java developer to program this feature for you. If you can program yourself, you can do this yourself.
Thank you
You create a variable for each player
long lastUsed;
e.g. Using a hash map. This shows the time when your player last successfully used the Ocmmand. The default is 0.
And if the player enters the command do something like this:
onUse () {
long currentTime = System.currentTimeMillis ();
if (currentTime - derPlayer.lastUsed> 86400000) / * Has more than one day passed? (86400000 milliseconds = 1 day) * / {
boolean success = runDeinCommand (); // Did the command run successfully?
if (success) derPlayer.lastUsed = currentTime;
} else {
tellplayer ("It's been less than 24 hours since last use.");
}
}