Class DefaultCommandMessages
java.lang.Object
tech.guilhermekaua.spigotboot.commands.message.DefaultCommandMessages
- All Implemented Interfaces:
CommandMessages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutionError(CommandExecutionContext context, Throwable throwable) invalidArgumentValue(CommandExecutionContext context, CommandParameterMetadata parameter, String input) missingRequiredArgument(CommandExecutionContext context, CommandParameterMetadata parameter) noPermission(CommandExecutionContext context, String permission) onCooldown(CommandExecutionContext context, Duration remaining) senderTypeMismatch(CommandExecutionContext context, Class<?> expectedSenderType) unknownSubcommand(CommandExecutionContext context) usage(CommandExecutionContext context, String usage)
-
Constructor Details
-
DefaultCommandMessages
public DefaultCommandMessages()
-
-
Method Details
-
missingRequiredArgument
public String missingRequiredArgument(CommandExecutionContext context, CommandParameterMetadata parameter) - Specified by:
missingRequiredArgumentin interfaceCommandMessages
-
invalidArgumentValue
public String invalidArgumentValue(CommandExecutionContext context, CommandParameterMetadata parameter, String input) - Specified by:
invalidArgumentValuein interfaceCommandMessages
-
noPermission
- Specified by:
noPermissionin interfaceCommandMessages
-
senderTypeMismatch
- Specified by:
senderTypeMismatchin interfaceCommandMessages
-
unknownSubcommand
- Specified by:
unknownSubcommandin interfaceCommandMessages
-
usage
- Specified by:
usagein interfaceCommandMessages
-
executionError
- Specified by:
executionErrorin interfaceCommandMessages
-
onCooldown
- Specified by:
onCooldownin interfaceCommandMessages
-