Skip to content

Add plugin.yml api-version compatibility check before installation #176

@Nlkomaru

Description

@Nlkomaru

Summary

Check plugin.yml api-version compatibility before installing a plugin to prevent incompatible plugins from being installed.

Workflow

  1. Download plugin JAR to temp directory
  2. Extract and parse plugin.yml from the JAR
  3. Read api-version field from plugin.yml
  4. Compare with server's Minecraft API version
  5. Warn or block installation if incompatible

Features

  • Extract plugin.yml from JAR file in temp directory
  • Parse api-version field (e.g., 1.20, 1.21)
  • Compare with current server API version
  • Display warning for incompatible plugins
  • Option to force install with --force flag
  • Show detailed compatibility info in plugin info command

Example

# plugin.yml
name: ExamplePlugin
version: 1.0.0
api-version: 1.21

If server is running 1.20, warn user:

⚠️ Warning: This plugin requires api-version 1.21, but server is running 1.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions