Class FreezeHell

java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.FreezeHell
All Implemented Interfaces:
Script

public class FreezeHell extends ScriptImpl
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

    • execute

      public void execute(Player admin, List<String> args)
      Description copied from interface: Script
      Executes this script.
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.