java.lang.Object
com.kamikazejam.kamicommon.command.KamiCommand
com.kamikazejam.kamicommon.subsystem.module.commands.UnmatchedCommand
All Implemented Interfaces:
Active, Disableable, PluginIdentifiableCommand

public abstract class UnmatchedCommand extends KamiCommand implements Disableable
This command is used to log unmatched arguments.
There is a method sendSubCommandsMap(Map) that is called when the subCommandsMap should be logged.
You can forward this information wherever you want.
  • Constructor Details

    • UnmatchedCommand

      public UnmatchedCommand(KamiPlugin plugin)
    • UnmatchedCommand

      public UnmatchedCommand(Module module)
  • Method Details

    • onUnmatchedArg

      public void onUnmatchedArg(@NotNull @NotNull CommandContext context)
      Overrides:
      onUnmatchedArg in class KamiCommand
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface Disableable
    • sendSubCommandsMap

      public abstract void sendSubCommandsMap(Map<String,Integer> subCommandsMap)
      Called when the subCommandsMap should be logged/
      Parameters:
      subCommandsMap - The subCommandsMap (Key: SubCommand, Value: Times Attempted)