From b498cec9ad890a89f2b5a442bb35da5f73cecbe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Mon, 7 Sep 2020 22:48:40 +0200 Subject: [PATCH] Make the command constructor public --- .../main/java/com/intellectualsites/commands/Command.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands-core/src/main/java/com/intellectualsites/commands/Command.java b/commands-core/src/main/java/com/intellectualsites/commands/Command.java index 1dceb880..f688d73c 100644 --- a/commands-core/src/main/java/com/intellectualsites/commands/Command.java +++ b/commands-core/src/main/java/com/intellectualsites/commands/Command.java @@ -49,10 +49,10 @@ public class Command { @Nullable private final Class senderType; @Nonnull private final String commandPermission; - protected Command(@Nonnull final List> commandComponents, - @Nonnull final CommandExecutionHandler commandExecutionHandler, - @Nullable final Class senderType, - @Nonnull final String commandPermission) { + public Command(@Nonnull final List> commandComponents, + @Nonnull final CommandExecutionHandler commandExecutionHandler, + @Nullable final Class senderType, + @Nonnull final String commandPermission) { this.components = Objects.requireNonNull(commandComponents, "Command components may not be null"); if (this.components.size() == 0) { throw new IllegalArgumentException("At least one command component is required");