Class AdminCommand<T extends AdminSubCommand>
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Command
-
- de.simonsator.partyandfriends.api.AdminCommand<T>
-
- Direct Known Subclasses:
PAFAdminCommand
public abstract class AdminCommand<T extends AdminSubCommand> extends net.md_5.bungee.api.plugin.Command
-
-
Constructor Summary
Constructors Constructor Description AdminCommand(java.lang.String... aliases)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addSubcommand(T pSubCommand)
void
execute(net.md_5.bungee.api.CommandSender commandSender, java.lang.String[] args)
protected abstract void
executeCommand(net.md_5.bungee.api.CommandSender commandSender, java.lang.String[] args)
protected java.util.List<T>
getSubCommands()
-
-
-
Method Detail
-
getSubCommands
protected java.util.List<T> getSubCommands()
-
addSubcommand
public void addSubcommand(T pSubCommand)
-
execute
public void execute(net.md_5.bungee.api.CommandSender commandSender, java.lang.String[] args)
- Specified by:
execute
in classnet.md_5.bungee.api.plugin.Command
-
executeCommand
protected abstract void executeCommand(net.md_5.bungee.api.CommandSender commandSender, java.lang.String[] args)
-
-