Can someone show me a full part of code on how to add delay in a command (sub command) I just want to adda cool down like this 5-4-3-2-1 and after this the command
I think you can use usleep function you can do : PHP: $sender->sendTip("5");usleep(1000000); //time in microseconds$sender->sendTip("4"); you should know every 1000000 microseconds = 1 second and you can read more about it in this site
That will block your server's main thread until the time is passed, never ever use this in your plugin unless you exactly know what you're trying to accomplish with it.
This resource will probably help you: https://forums.pmmp.io/threads/creating-a-timer-with-tasks.136/