Package games.stendhal.server.script
Class FreezeHell
java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.core.scripting.AbstractAdminScript
games.stendhal.server.script.FreezeHell
- All Implemented Interfaces:
Script
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.
-
Field Summary
Fields inherited from class games.stendhal.server.core.scripting.AbstractAdminScript
adminFields inherited from class games.stendhal.server.core.scripting.ScriptImpl
sandbox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInstructions to execute after parameter count sanity is checked.static voidSchedules hell freezing for April 1st.Methods inherited from class games.stendhal.server.core.scripting.AbstractAdminScript
execute, getMaxParams, getMinParams, getParamDetails, getParamStrings, getUsage, sendError, sendInfo, sendText, sendWarning, showUsageMethods inherited from class games.stendhal.server.core.scripting.ScriptImpl
load, unload
-
Constructor Details
-
FreezeHell
public FreezeHell()
-
-
Method Details
-
run
Description copied from class:AbstractAdminScriptInstructions to execute after parameter count sanity is checked.- Specified by:
runin classAbstractAdminScript- Parameters:
args- Parameters passed to the script.
-
scheduleDefault
public static void scheduleDefault()Schedules hell freezing for April 1st.
-