Throw an exception when trying to parse a static method with the @CommandMethod annotation

This commit is contained in:
jmp 2020-12-13 01:42:27 -08:00 committed by Alexander Söderberg
parent f8235a4ed1
commit e241420ee9
2 changed files with 8 additions and 1 deletions

View file

@ -639,7 +639,7 @@ public class Command<C> {
* Specify a required sender type
*
* @param senderType Required sender type
* @return New builder instance using the command execution handler
* @return New builder instance using the required sender type
*/
public @NonNull Builder<C> senderType(final @NonNull Class<? extends C> senderType) {
return new Builder<>(