Package games.stendhal.server.script
Class SpawnCreature
java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.core.scripting.AbstractAdminScript
games.stendhal.server.script.SpawnCreature
- All Implemented Interfaces:
Script
Script for invoking spawning of creature spawn point.
Usage: /script SpawnCreature.class
-
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 intRetrieves maximum number of parameters required to run script.protected intRetrieves minumum number of parameters required to run script.Retrieves a list of parameter strings that this script accepts.protected voidInstructions to execute after parameter count sanity is checked.Methods inherited from class games.stendhal.server.core.scripting.AbstractAdminScript
execute, getParamDetails, getUsage, sendError, sendInfo, sendText, sendWarning, showUsageMethods inherited from class games.stendhal.server.core.scripting.ScriptImpl
load, unload
-
Constructor Details
-
SpawnCreature
public SpawnCreature()
-
-
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.
-
getMinParams
protected int getMinParams()Description copied from class:AbstractAdminScriptRetrieves minumum number of parameters required to run script.- Overrides:
getMinParamsin classAbstractAdminScript
-
getMaxParams
protected int getMaxParams()Description copied from class:AbstractAdminScriptRetrieves maximum number of parameters required to run script. An indefinite amount can be specified with-1.- Overrides:
getMaxParamsin classAbstractAdminScript
-
getParamStrings
Description copied from class:AbstractAdminScriptRetrieves a list of parameter strings that this script accepts. An empty string can be included to show execution without parameters.- Overrides:
getParamStringsin classAbstractAdminScript
-