zDevelopers / UHPlugin

Plugin UltraHardcore (“Kill the Patrick”), augmenté. | UHC (“KTP”) plugin, improved.
Other
32 stars 24 forks source link

Execute Delays #113

Closed jdtzmn closed 9 years ago

jdtzmn commented 9 years ago

I am trying to make the ultra hardcore server automatically restart itself. The "exec: restart" command is working fine, but before it I tried to put a one minute delay and it won't work. Here is a snippet of my code:

execute-end:
   - delay: "01:00"
   - exec: restart

I also tried using:

execute-end:
   - delay: "01"
   - exec: restart
AmauryCarrade commented 9 years ago

Use this instead:

execute-end:
   - delay: "01:00"
     exec: restart

(notice the dash).

There is one dash per command/command options.