Class UnmatchedCommand
java.lang.Object
com.kamikazejam.kamicommon.command.KamiCommand
com.kamikazejam.kamicommon.subsystem.module.commands.UnmatchedCommand
- All Implemented Interfaces:
Active,Disableable,PluginIdentifiableCommand
This command is used to log unmatched arguments.
There is a method
You can forward this information wherever you want.
There is a method
sendSubCommandsMap(Map) that is called when the subCommandsMap should be logged. You can forward this information wherever you want.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kamikazejam.kamicommon.command.KamiCommand
KamiCommand.Config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonUnmatchedArg(@NotNull CommandContext context) abstract voidsendSubCommandsMap(Map<String, Integer> subCommandsMap) Called when the subCommandsMap should be logged/Methods inherited from class com.kamikazejam.kamicommon.command.KamiCommand
addAliases, addAliases, addChild, addChild, addChildAfter, addParameter, addParameter, addRequirements, addRequirements, applyConcatenating, argIsSet, argIsSet, execute, getActivePlugin, getAllInstances, getBukkitCommandPermission, getChain, getChild, getCommandLine, getConcatenationIndex, getCurrentCommandLine, getCurrentTemplateChainMini, getCurrentTemplateUsageMini, getDesc, getDescPermission, getFullTemplate, getHelpClickable, getHelpCommand, getHelpCommandLine, getPageParameterIndex, getParameter, getParameterCount, getParameterCountOptional, getParameterCountRequired, getParameterType, getParents, getPlugin, getRequirementsError, getRoot, getSuggestionClickable, getSuggestionCommandLine, getTabCompletions, getTabCompletionsArg, getTabCompletionsChild, getTemplateParameters, getVisibleChildren, hasChildren, hasParameterForIndex, hasParent, isActive, isChild, isFullChainMet, isLeaf, isParent, isRelevant, isRequirementsMet, isRoot, isVisibleTo, perform, readArg, readArg, registerCommand, removeChild, removeParent, replaceChild, setActive, setActive, setActivePlugin, setAliases, setAliases, setBukkitCommandPermission, setConcatenating, setDesc, setHelpComments, setHelpComments, setOverflowSensitive, setParameter, setParent, setRequirements, setSwapping, setTokenizing, setUnsmart, unregisterCommand, validateActiveAndRoot
-
Constructor Details
-
UnmatchedCommand
-
UnmatchedCommand
-
-
Method Details
-
onUnmatchedArg
- Overrides:
onUnmatchedArgin classKamiCommand
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceDisableable
-
sendSubCommandsMap
Called when the subCommandsMap should be logged/- Parameters:
subCommandsMap- The subCommandsMap (Key: SubCommand, Value: Times Attempted)
-