public class ManageCommand extends SubCommand
Constructor and Description |
---|
ManageCommand(Plan plugin)
Subcommand 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 manage subcommands.
|
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args)
The Command Execution method.
|
getArguments, getCommandType, getFirstName, getName, getPermission, getUsage
public ManageCommand(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)
SubCommand
onCommand
in class SubCommand
sender
- Parameter of onCommand in CommandExecutor.cmd
- Parameter of onCommand in CommandExecutor.commandLabel
- Parameter of onCommand in CommandExecutor.args
- Parameter of onCommand in CommandExecutor.CommandExecutor
Copyright © 2017. All rights reserved.