org.monstercraft.irc.managers
Class CommandManager

java.lang.Object
  extended by org.monstercraft.irc.managers.CommandManager

public class CommandManager
extends java.lang.Object

This class manages all of the plugins commands.

Author:
fletch_to_99

Constructor Summary
CommandManager(IRC plugin)
          Creates an instance
 
Method Summary
 boolean onGameCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, java.lang.String label, java.lang.String[] args)
          Executes a command that was ran in game or through the console.
 boolean onIRCCommand(java.lang.String sender, java.lang.String arg)
          Executes a command ran through IRC.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandManager

public CommandManager(IRC plugin)
Creates an instance

Parameters:
plugin - The parent plugin.
Method Detail

onGameCommand

public boolean onGameCommand(org.bukkit.command.CommandSender sender,
                             org.bukkit.command.Command command,
                             java.lang.String label,
                             java.lang.String[] args)
Executes a command that was ran in game or through the console.

Parameters:
sender - The command sender.
command - The command.
label - The commands label.
args - The arguments in the command.
Returns:
True if the command executed successfully; Otherwise false.

onIRCCommand

public boolean onIRCCommand(java.lang.String sender,
                            java.lang.String arg)
Executes a command ran through IRC.

Parameters:
sender - The user that send the command.
arg - The arguments in the command.
Returns:
True if the command executed successfully; Otherwise false.