Class ScriptInGroovy
java.lang.Object
games.stendhal.server.core.scripting.ScriptingSandbox
games.stendhal.server.core.scripting.ScriptInGroovy
manages a script written in groovy
-
Constructor Summary
-
Method Summary
Methods inherited from class games.stendhal.server.core.scripting.ScriptingSandbox
add, add, add, add, addGameEvent, getCreature, getCreatures, getItem, getItems, getMessage, getZone, getZone, modify, playerIsInZone, postExecute, preExecute, privateText, remove, remove, setMessage, setZone, setZone, unload
-
Constructor Details
-
ScriptInGroovy
manages a script written in groovy- Parameters:
filename
- filename
-
-
Method Details
-
load
Initial load of this script.- Specified by:
load
in classScriptingSandbox
- Parameters:
player
- the admin who load it ornull
on server start.args
- the arguments the admin specified ornull
on server start.
-
execute
Executes this script.- Overrides:
execute
in classScriptingSandbox
- Parameters:
player
- the admin who load it ornull
on server start.args
- the arguments the admin specified ornull
on server start.- Returns:
true
at successful execution, otherwisefalse
-