net.jetrix.commands
Class JoinCommand

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

public class JoinCommand
extends AbstractCommand
implements ParameterCommand

Join or create a channel.

Version:
$Revision: 537 $, $Date: 2004-12-18 02:11:01 +0100 (sam., 18 déc. 2004) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.commands.AbstractCommand
hidden, level, log
 
Constructor Summary
JoinCommand()
           
 
Method Summary
 void execute(CommandMessage m)
          Execute the command.
 String[] getAliases()
          Return the different names available to invoke this command.
 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, getAlias, 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, getDescription, isHidden, setAccessLevel, setHidden
 

Constructor Detail

JoinCommand

public JoinCommand()
Method Detail

getAliases

public String[] getAliases()
Description copied from interface: Command
Return the different names available to invoke this command. An alias doesn't contain the leading character used to call a command ("/" or "!"). The first alias in the array is the default name that will be displayed in the /help list.

Specified by:
getAliases in interface Command
Overrides:
getAliases 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.