Class ChangeMasterCommand

All Implemented Interfaces:
Command

public class ChangeMasterCommand extends GuildMasterCommand
Makes you, as guildmaster, promote somebody else as guildmaster. There are some requirements to follow:
  • the user must exist and be a normal player
  • the user must be online
  • the user must be a member of the guild
Command syntax something like : guildmasterchange <username>
Author:
maartenl
  • Constructor Details

    • ChangeMasterCommand

      public ChangeMasterCommand(String aRegExpr)
  • Method Details

    • run

      public DisplayInterface run(String command, User aUser) throws MudException
      Description copied from interface: Command
      Runs the command. The usual sequence of events is:
      • parsing the command string
      • retrieving the appropriate information items/rooms/characters/etc)
      • doing the action
      • composing a return message for the user.
      Specified by:
      run in interface Command
      Specified by:
      run in class NormalCommand
      Parameters:
      command - the String containing the full command.
      aUser - the user that is executing the command
      Returns:
      DisplayInterface to display to the user, if it returns null, it means the command was unsuccessfull.
      Throws:
      MudException - if something goes wrong.