Package games.stendhal.server.extension
Class StendhalServerExtension
java.lang.Object
games.stendhal.server.extension.StendhalServerExtension
- All Implemented Interfaces:
StendhalServerExtensionIface
- Direct Known Subclasses:
ScriptRunner
,TeleportSendExtension
public abstract class StendhalServerExtension
extends Object
implements StendhalServerExtensionIface
The StendhalServerExtension is a base class for plugins that add
functions to the server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StendhalServerExtensionIface
getInstance(String name)
gets an stendhal extension instancegetMessage(String name)
abstract void
init()
init the extensionboolean
-
Constructor Details
-
StendhalServerExtension
public StendhalServerExtension()
-
-
Method Details
-
init
public abstract void init()init the extension- Specified by:
init
in interfaceStendhalServerExtensionIface
-
perform
- Parameters:
name
-- Returns:
true
on success, otherwisefalse>/code>
-
getMessage
- Parameters:
name
-- Returns:
- message
-
getInstance
gets an stendhal extension instance- Parameters:
name
- name of the extension class- Returns:
- StendhalServerExtension
-