org.monstercraft.irc.command
Class IRCCommand

java.lang.Object
  extended by org.bukkit.plugin.java.JavaPlugin
      extended by org.monstercraft.irc.IRC
          extended by org.monstercraft.irc.command.IRCCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.plugin.Plugin
Direct Known Subclasses:
Announce, Mute, Unmute

public abstract class IRCCommand
extends IRC

This class is the Abstract IRC command.

Author:
fletch_to_99

Constructor Summary
IRCCommand(IRC plugin)
          Creates an instance of the IRCCommand class.
 
Method Summary
abstract  boolean canExecute(java.lang.String sender, java.lang.String message)
          Checks if the command can be executed by the certian user.
abstract  boolean execute(java.lang.String sender, java.lang.String message)
          The action to perfrom when executing the command.
 
Methods inherited from class org.monstercraft.irc.IRC
getCommandManager, getHandleManager, getHookManager, getSettings, onCommand, onDisable, onEnable
 
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getConfiguration, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getPluginLoader, getResource, getServer, isEnabled, isInitialized, isNaggable, onLoad, reloadConfig, saveConfig, setNaggable, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IRCCommand

public IRCCommand(IRC plugin)
Creates an instance of the IRCCommand class.

Parameters:
plugin - The parent plugin.
Method Detail

canExecute

public abstract boolean canExecute(java.lang.String sender,
                                   java.lang.String message)
Checks if the command can be executed by the certian user.

Parameters:
sender - The command sender.
message - The commands arguments in the form of a string.
Returns:
True if the user is able to execute the command; otherwise false.

execute

public abstract boolean execute(java.lang.String sender,
                                java.lang.String message)
The action to perfrom when executing the command.

Parameters:
sender - The command sender.
message - The arguments of the command in the form of a string.
Returns:
True if the command executed successfully; otherwise false.