Package games.stendhal.server.script
Class AbstractOfflineAction
java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.AbstractOfflineAction
- All Implemented Interfaces:
Script
- Direct Known Subclasses:
OfflineAdminlevel,OfflineClearSentence
An abstract super class for actions on offline players
- Author:
- hendrik
-
Field Summary
Fields inherited from class games.stendhal.server.core.scripting.ScriptImpl
sandbox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes this script.abstract voidprocesses the requested operation on the loaded objectabstract booleanvalidateParameters(Player admin, List<String> args) validates the parameters, sends an error message, if something is wrong with themMethods inherited from class games.stendhal.server.core.scripting.ScriptImpl
load, unload
-
Constructor Details
-
AbstractOfflineAction
public AbstractOfflineAction()
-
-
Method Details
-
execute
Description copied from interface:ScriptExecutes this script.- Specified by:
executein interfaceScript- Overrides:
executein classScriptImpl- Parameters:
admin- the admin who load it ornullon server start.args- the arguments the admin specified ornullon server start.
-
validateParameters
validates the parameters, sends an error message, if something is wrong with them- Parameters:
admin- admin executing the scriptargs- arguments for the script- Returns:
- true if the parameters are valid, false otherwise
-
process
processes the requested operation on the loaded object- Parameters:
admin- admin executing the scriptobject- the RPObject of the player loaded from the databaseargs- arguments for the script
-