diff --git a/cloud-core/src/main/java/cloud/commandframework/Command.java b/cloud-core/src/main/java/cloud/commandframework/Command.java index 4d965ed8..2fbd1064 100644 --- a/cloud-core/src/main/java/cloud/commandframework/Command.java +++ b/cloud-core/src/main/java/cloud/commandframework/Command.java @@ -307,6 +307,30 @@ public class Command { this.flags = Objects.requireNonNull(flags, "Flags may not be null"); } + /** + * Get the required sender type for this builder + *

+ * Returns {@code null} when there is not a specific required sender type + * + * @return required sender type + * @since 1.3.0 + */ + public @Nullable Class senderType() { + return this.senderType; + } + + /** + * Get the required command permission for this builder + *

+ * Will return {@link Permission#empty()} if there is no required permission + * + * @return required permission + * @since 1.3.0 + */ + public @NonNull CommandPermission commandPermission() { + return this.commandPermission; + } + /** * Add command meta to the internal command meta map *