Class NameChange

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

public class NameChange extends ScriptImpl
Makes client display a fake player name by changing the title attribute. If args[0] equals remove, the original name is reset. Can only be used to *chage the name of the player running the script.
Author:
timothyb89
  • Constructor Details

    • NameChange

      public NameChange()
  • Method Details

    • 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.