public class PlanCommand extends Object implements org.bukkit.command.CommandExecutor
Constructor and Description |
---|
PlanCommand(Plan plugin)
CommandExecutor class Constructor.
|
Modifier and Type | Method and Description |
---|---|
SubCommand |
getCommand(String name)
Checks SubCommands for matching aliases.
|
List<SubCommand> |
getCommands()
Used to get the list of all subcommands.
|
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args)
Checks if Sender has rights to run the command and executes matching
subcommand.
|
public PlanCommand(Plan plugin)
plugin
- Current instance of Planpublic List<SubCommand> getCommands()
public SubCommand getCommand(String name)
name
- SubCommand in text form that might match alias.public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
sender
- source of the command.cmd
- command.commandLabel
- label.args
- arguments of the commandCopyright © 2017. All rights reserved.