Class ScriptInJava
java.lang.Object
games.stendhal.server.core.scripting.ScriptingSandbox
games.stendhal.server.core.scripting.ScriptInJava
Manager for scripts written in Java.
- Author:
- hendrik
-
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
-
Constructor Details
-
ScriptInJava
Creates a new script written in Java.- Parameters:
scriptname
- Name of the script
-
-
Method Details
-
load
Initial load of this script.- Specified by:
load
in classScriptingSandbox
- Parameters:
admin
- the admin who load it ornull
on server start.args
- the arguments the admin specified ornull
on server start.
-
execute
Description copied from class:ScriptingSandbox
Executes this script.- Overrides:
execute
in classScriptingSandbox
- Parameters:
admin
- 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
-
unload
Executes this script.- Overrides:
unload
in classScriptingSandbox
- Parameters:
admin
- the admin who load it ornull
on server start.args
- the arguments the admin specified ornull
on server start.
-