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 TypeMethodDescriptionvoid
void
onUnmatchedArg
(@NotNull CommandContext context) abstract void
sendSubCommandsMap
(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, getCurrentTemplateChain, getCurrentTemplateUsage, 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:
onUnmatchedArg
in classKamiCommand
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceDisableable
-
sendSubCommandsMap
Called when the subCommandsMap should be logged/- Parameters:
subCommandsMap
- The subCommandsMap (Key: SubCommand, Value: Times Attempted)
-