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
Constructors -
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:
loadin classScriptingSandbox- Parameters:
admin- the admin who load it ornullon server start.args- the arguments the admin specified ornullon server start.
-
execute
Description copied from class:ScriptingSandboxExecutes this script.- Overrides:
executein classScriptingSandbox- Parameters:
admin- the admin who load it ornullon server start.args- the arguments the admin specified ornullon server start.- Returns:
trueat successful execution, otherwisefalse
-
unload
Executes this script.- Overrides:
unloadin classScriptingSandbox- Parameters:
admin- the admin who load it ornullon server start.args- the arguments the admin specified ornullon server start.
-