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 Details

    • StendhalServerExtension

      public StendhalServerExtension()
  • Method Details

    • init

      public abstract void init()
      init the extension
      Specified by:
      init in interface StendhalServerExtensionIface
    • perform

      public boolean perform(String name)
      Parameters:
      name -
      Returns:
      true on success, otherwise false>/code>
    • getMessage

      public String getMessage(String name)
      Parameters:
      name -
      Returns:
      message
    • getInstance

      public static StendhalServerExtensionIface getInstance(String name)
      gets an stendhal extension instance
      Parameters:
      name - name of the extension class
      Returns:
      StendhalServerExtension