net.jetrix.commands
Class MoveCommand

java.lang.Object
  extended by net.jetrix.commands.AbstractCommand
      extended by net.jetrix.commands.MoveCommand
All Implemented Interfaces:
Command, ParameterCommand

public class MoveCommand
extends AbstractCommand
implements ParameterCommand

Move a player to a new slot or switch two players.

Version:
$Revision: 598 $, $Date: 2005-01-16 21:33:32 +0100 (dim., 16 janv. 2005) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.commands.AbstractCommand
hidden, level, log
 
Constructor Summary
MoveCommand()
           
 
Method Summary
 void execute(CommandMessage m)
          Execute the command.
 String getAlias()
          Return the command alias.
 int getParameterCount()
          Return the minimum number of parameters required by the command.
 String getUsage(Locale locale)
          Return the usage of this command, for example /cmd <param1> <param2>
 
Methods inherited from class net.jetrix.commands.AbstractCommand
getAccessLevel, getAliases, getDescription, isHidden, setAccessLevel, setHidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jetrix.commands.Command
getAccessLevel, getAliases, getDescription, isHidden, setAccessLevel, setHidden
 

Constructor Detail

MoveCommand

public MoveCommand()
Method Detail

getAlias

public String getAlias()
Description copied from class: AbstractCommand
Return the command alias. This is a method to be overriden only by commands with a unique alias.

Overrides:
getAlias in class AbstractCommand

getUsage

public String getUsage(Locale locale)
Description copied from interface: Command
Return the usage of this command, for example /cmd <param1> <param2>

Specified by:
getUsage in interface Command
Overrides:
getUsage in class AbstractCommand
Parameters:
locale - the locale to be used for the usage

getParameterCount

public int getParameterCount()
Description copied from interface: ParameterCommand
Return the minimum number of parameters required by the command.

Specified by:
getParameterCount in interface ParameterCommand

execute

public void execute(CommandMessage m)
Description copied from interface: Command
Execute the command.

Specified by:
execute in interface Command


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.