Class ScriptInJava

java.lang.Object
games.stendhal.server.core.scripting.ScriptingSandbox
games.stendhal.server.core.scripting.ScriptInJava

public class ScriptInJava extends ScriptingSandbox
Manager for scripts written in Java.
Author:
hendrik
  • Constructor Details

    • ScriptInJava

      public ScriptInJava(String scriptname)
      Creates a new script written in Java.
      Parameters:
      scriptname - Name of the script
  • Method Details

    • load

      public boolean load(Player admin, List<String> args)
      Initial load of this script.
      Specified by:
      load in class ScriptingSandbox
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.
    • execute

      public boolean execute(Player admin, List<String> args)
      Description copied from class: ScriptingSandbox
      Executes this script.
      Overrides:
      execute in class ScriptingSandbox
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.
      Returns:
      true at successful execution, otherwise false
    • unload

      public void unload(Player admin, List<String> args)
      Executes this script.
      Overrides:
      unload in class ScriptingSandbox
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.