Class SummonChest

java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.SummonChest
All Implemented Interfaces:
Script

public class SummonChest extends ScriptImpl
Enables admins to create (list and remove) chests.
Author:
yoriy
  • Constructor Details

    • SummonChest

      public SummonChest()
  • Method Details

    • add

      public void add(Player player, List<String> args)
      Adds a chest.
      Parameters:
      player - admin who put the chest
      args - zone x y
    • delete

      public void delete(Player player, List<String> args)
      Removes the specified chest.
      Parameters:
      player - admin
      args - chest number at index 1
    • list

      public void list(Player player)
      Lists all chests.
      Parameters:
      player - admin invoking this script
    • execute

      public void execute(Player admin, List<String> args)
      Description copied from interface: Script
      Executes this script.
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.