TorchAPI / Essentials

A Torch plugin that adds must-have utilities and administration tools to Space Engineers dedicated servers.
23 stars 32 forks source link

Ability to Cancel running Command Chain #197

Closed LordTylus closed 2 years ago

LordTylus commented 2 years ago

We do run the following command chain on our server pretty much an hour before restart.

<Steps>
        <CommandStep>
          <Delay>00:30:00</Delay>
          <Command>!say Restart in 1 hour!</Command>
        </CommandStep>
        <CommandStep>
          <Delay>00:15:00</Delay>
          <Command>!say Restart in 30 minutes!</Command>
        </CommandStep>
        <CommandStep>
          <Delay>00:10:00</Delay>
          <Command>!say Restart in 15 minutes!</Command>
        </CommandStep>
        <CommandStep>
          <Delay>00:04:00</Delay>
          <Command>!say Restart in 5 minutes!</Command>
        </CommandStep>
        <CommandStep>
          <Delay>00:00:05</Delay>
          <Command>!restart 60</Command>
        </CommandStep>
        <CommandStep>
          <Delay>00:00:25</Delay>
          <Command>!admin runauto "Restart Procedure"</Command>
        </CommandStep>
      </Steps>

It would be amazing if I could cancel that procedure at any time. and now wait till the !restart command is triggered.

N1Ran commented 2 years ago

done