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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes this script.abstract void
processes the requested operation on the loaded objectabstract boolean
validateParameters(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:Script
Executes this script.- Specified by:
execute
in interfaceScript
- Overrides:
execute
in classScriptImpl
- Parameters:
admin
- the admin who load it ornull
on server start.args
- the arguments the admin specified ornull
on 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
-