org.monstercraft.irc.command.gamecommands
Class Ban

java.lang.Object
  extended by org.bukkit.plugin.java.JavaPlugin
      extended by org.monstercraft.irc.IRC
          extended by org.monstercraft.irc.command.GameCommand
              extended by org.monstercraft.irc.command.gamecommands.Ban
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.plugin.Plugin

public class Ban
extends GameCommand


Constructor Summary
Ban(IRC plugin)
           
 
Method Summary
 boolean canExecute(org.bukkit.command.CommandSender sender, java.lang.String[] split)
          Checks if the command can be executed by the certian user.
 boolean execute(org.bukkit.command.CommandSender sender, java.lang.String[] split)
          The action to perfrom when executing the command.
 java.lang.String getPermissions()
          The permission node to check.
 
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

Ban

public Ban(IRC plugin)
Method Detail

canExecute

public boolean canExecute(org.bukkit.command.CommandSender sender,
                          java.lang.String[] split)
Description copied from class: GameCommand
Checks if the command can be executed by the certian user.

Specified by:
canExecute in class GameCommand
Parameters:
sender - The command sender.
split - The command arguments.
Returns:
True if the user is able to execute the command; otherwise false.

execute

public boolean execute(org.bukkit.command.CommandSender sender,
                       java.lang.String[] split)
Description copied from class: GameCommand
The action to perfrom when executing the command.

Specified by:
execute in class GameCommand
Parameters:
sender - The command sender.
split - The command arguments.
Returns:
True if the command executed successfully; otherwise false.

getPermissions

public java.lang.String getPermissions()
Description copied from class: GameCommand
The permission node to check.

Specified by:
getPermissions in class GameCommand
Returns:
The permission node.