✨ Throw an exception when trying to parse a static method with the @CommandMethod annotation
This commit is contained in:
parent
f8235a4ed1
commit
e241420ee9
2 changed files with 8 additions and 1 deletions
|
|
@ -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<>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue