Class ScriptInGroovy

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

public class ScriptInGroovy extends ScriptingSandbox
manages a script written in groovy
  • Constructor Details

    • ScriptInGroovy

      public ScriptInGroovy(String filename)
      manages a script written in groovy
      Parameters:
      filename - filename
  • Method Details

    • load

      public boolean load(Player player, List<String> args)
      Initial load of this script.
      Specified by:
      load in class ScriptingSandbox
      Parameters:
      player - 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 player, List<String> args)
      Executes this script.
      Overrides:
      execute in class ScriptingSandbox
      Parameters:
      player - 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