Class IGeneralCommand<P extends CodexPlugin<P>>
java.lang.Object
studio.magemonkey.codex.commands.api.IAbstractCommand<P>
studio.magemonkey.codex.commands.api.IGeneralCommand<P>
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
- Direct Known Subclasses:
ChatCommander,IModuleExecutor,MainCommand,ScoreboardCommander,UnstuckCommand
public abstract class IGeneralCommand<P extends CodexPlugin<P>>
extends IAbstractCommand<P>
implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabExecutor
-
Field Summary
Fields inherited from class studio.magemonkey.codex.commands.api.IAbstractCommand
aliases, permission, plugin -
Constructor Summary
ConstructorsConstructorDescriptionIGeneralCommand(P plugin, String[] aliases) IGeneralCommand(P plugin, String[] aliases, String permission) IGeneralCommand(P plugin, List<String> aliases) IGeneralCommand(P plugin, List<String> aliases, String permission) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefaultCommand(ISubCommand<P> cmd) voidaddSubCommand(ISubCommand<P> cmd) voidfinal booleanonCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) voidremoveSubCommand(String alias) Methods inherited from class studio.magemonkey.codex.commands.api.IAbstractCommand
description, errItem, errPerm, errPlayer, errSender, errType, execute, getNumD, getNumD, getNumI, getNumI, getPermission, getTab, hasPerm, labels, perform, playersOnly, printUsage, usage
-
Constructor Details
-
IGeneralCommand
-
IGeneralCommand
-
IGeneralCommand
-
IGeneralCommand
-
-
Method Details
-
addSubCommand
-
addDefaultCommand
-
clearSubCommands
public void clearSubCommands() -
removeSubCommand
-
getSubCommands
-
onCommand
public final boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) - Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
public final List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) - Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter
-