net.jetrix.commands
Class ModeCommand

java.lang.Object
  extended by net.jetrix.commands.AbstractCommand
      extended by net.jetrix.commands.ModeCommand
All Implemented Interfaces:
Command

public class ModeCommand
extends AbstractCommand

Switch between preconfigured settings.

Version:
$Revision: 735 $, $Date: 2008-08-22 16:56:48 +0200 (ven., 22 août 2008) $
Author:
Gamereplay, Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.commands.AbstractCommand
hidden, level, log
 
Constructor Summary
ModeCommand()
           
 
Method Summary
 void execute(CommandMessage message)
          Execute the command.
 String getAlias()
          Return the command alias.
 String getUsage(Locale locale)
          Return the usage of this command, for example /cmd <param1> <param2>
 void updateSetting(Settings settings, int[] mode)
           
 
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
 

Constructor Detail

ModeCommand

public ModeCommand()
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

updateSetting

public void updateSetting(Settings settings,
                          int[] mode)

execute

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



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