Class FreezeHell

All Implemented Interfaces:
Script

public class FreezeHell extends AbstractAdminScript
Freezes the hell. The script should be run before the day, not during it. For testing it allows optionally specifying the time and duration.

First argument is the freezing time (either date time in ISO format, or time in HH:MM[:SS] format. Time before the current moment will be interpreted as the corresponding time of next day. The default is start of April 1, either the current year, or the next year if run after that moment.

Second argument is the freezing duration in HH:MM[:SS] format. Default is one day.

  • Constructor Details

    • FreezeHell

      public FreezeHell()
  • Method Details

    • run

      protected void run(List<String> args)
      Description copied from class: AbstractAdminScript
      Instructions to execute after parameter count sanity is checked.
      Specified by:
      run in class AbstractAdminScript
      Parameters:
      args - Parameters passed to the script.
    • scheduleDefault

      public static void scheduleDefault()
      Schedules hell freezing for April 1st.