Make the command constructor public

This commit is contained in:
Alexander Söderberg 2020-09-07 22:53:52 +02:00
parent b498cec9ad
commit 1540d38486
No known key found for this signature in database
GPG key ID: C0207FF7EA146678

View file

@ -76,6 +76,18 @@ public class Command<C extends CommandSender> {
this.commandPermission = commandPermission;
}
public Command(@Nonnull final List<CommandComponent<C, ?>> commandComponents,
@Nonnull final CommandExecutionHandler<C> commandExecutionHandler,
@Nullable final Class<? extends C> senderType) {
this(commandComponents, commandExecutionHandler, senderType, "");
}
public Command(@Nonnull final List<CommandComponent<C, ?>> commandComponents,
@Nonnull final CommandExecutionHandler<C> commandExecutionHandler,
@Nonnull final String commandPermission) {
this(commandComponents, commandExecutionHandler, null, "");
}
/**
* Create a new command builder
*