CommandErrors

Typed parse-error factories for the client argument types, mirroring the vanilla pattern of one DynamicCommandExceptionType per failure mode (see e.g. Vec3Argument.ERROR_NOT_COMPLETE). Unlike vanilla's Component.literal messages, the factories produce translatable components so the whole error sentence renders in the user's language.

Properties

Link copied to clipboard
val EMPTY_MULTI_SELECT: DynamicCommandExceptionType

%s = parameter name.

Link copied to clipboard
val INVALID_BOOLEAN: DynamicCommandExceptionType

First %s = rejected value, second %s = parameter name.

Link copied to clipboard
val INVALID_CHOICE: DynamicCommandExceptionType

First %s = rejected value, second %s = parameter name.

Link copied to clipboard
val INVALID_ENCHANT_LEVEL: DynamicCommandExceptionType

First %s = rejected value, second %s = the max keyword.

Link copied to clipboard
val INVALID_MULTI_SELECT: DynamicCommandExceptionType

First %s = rejected value, second %s = type name.

Link copied to clipboard
val NO_SUCH_MODULE: DynamicCommandExceptionType

%s = rejected module name.

Link copied to clipboard
val NO_SUCH_PLAYER: DynamicCommandExceptionType

%s = rejected player name.

Link copied to clipboard
val NOT_A_FRIEND: DynamicCommandExceptionType

%s = rejected friend name.