Package me.bimmr.bimmcore.commands
Class SuperCommand
- java.lang.Object
-
- me.bimmr.bimmcore.commands.SubCommand
-
- me.bimmr.bimmcore.commands.SuperCommand
-
public abstract class SuperCommand extends SubCommand
The command class - Used for commands such as /McInfected Admin
-
-
Constructor Summary
Constructors Constructor Description SuperCommand(java.lang.String name)Instantiates a new Super command.
-
Method Summary
Modifier and Type Method Description voidaddSubCommand(SubCommand subCommand)Add a subcommandvoidexecute(org.bukkit.command.CommandSender sender, java.lang.String[] args)abstract java.util.List<java.lang.String>getAliases()java.lang.StringgetAllSubCommandExample()Gets all sub command example.abstract java.lang.StringgetCommandExample()abstract java.lang.StringgetCommandExampleHeader()Gets command example header.abstract FancyMessagegetFancyMessage()abstract java.lang.StringgetInvalidSubCommandMessage()Gets invalid sub command message.abstract java.lang.StringgetPermission()SubCommandgetSubCommand(java.lang.String command)Get the SubCommand that matches the commandjava.util.List<java.lang.String>getTabs(java.lang.String[] args)voidremoveSubCommand(SubCommand subCommand)Remove a subcommandvoidsendAllSubFancyMessage(org.bukkit.command.CommandSender sender)Send all sub fancy message.-
Methods inherited from class me.bimmr.bimmcore.commands.SubCommand
getName, hasPermission
-
-
-
-
Method Detail
-
execute
public void execute(org.bukkit.command.CommandSender sender, java.lang.String[] args) throws org.bukkit.command.CommandException- Specified by:
executein classSubCommand- Throws:
org.bukkit.command.CommandException
-
getInvalidSubCommandMessage
public abstract java.lang.String getInvalidSubCommandMessage()
Gets invalid sub command message.- Returns:
- the invalid sub command message
-
getAliases
public abstract java.util.List<java.lang.String> getAliases()
- Specified by:
getAliasesin classSubCommand
-
getCommandExampleHeader
public abstract java.lang.String getCommandExampleHeader()
Gets command example header.- Returns:
- the command example header
-
getAllSubCommandExample
public java.lang.String getAllSubCommandExample()
Gets all sub command example.- Returns:
- the all sub command example
-
sendAllSubFancyMessage
public void sendAllSubFancyMessage(org.bukkit.command.CommandSender sender)
Send all sub fancy message.- Parameters:
sender- the sender
-
getFancyMessage
public abstract FancyMessage getFancyMessage()
- Specified by:
getFancyMessagein classSubCommand
-
getCommandExample
public abstract java.lang.String getCommandExample()
- Specified by:
getCommandExamplein classSubCommand
-
getPermission
public abstract java.lang.String getPermission()
- Specified by:
getPermissionin classSubCommand
-
getTabs
public java.util.List<java.lang.String> getTabs(java.lang.String[] args)
- Specified by:
getTabsin classSubCommand
-
getSubCommand
public SubCommand getSubCommand(java.lang.String command)
Get the SubCommand that matches the command- Parameters:
command- the command- Returns:
- sub command
-
addSubCommand
public void addSubCommand(SubCommand subCommand)
Add a subcommand- Parameters:
subCommand- the sub command
-
removeSubCommand
public void removeSubCommand(SubCommand subCommand)
Remove a subcommand- Parameters:
subCommand- the sub command
-
-