generated from Nlkomaru/PluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Check plugin.yml api-version compatibility before installing a plugin to prevent incompatible plugins from being installed.
Workflow
- Download plugin JAR to temp directory
- Extract and parse
plugin.ymlfrom the JAR - Read
api-versionfield from plugin.yml - Compare with server's Minecraft API version
- 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
--forceflag - Show detailed compatibility info in plugin info command
Example
# plugin.yml
name: ExamplePlugin
version: 1.0.0
api-version: 1.21If server is running 1.20, warn user:
⚠️ Warning: This plugin requires api-version 1.21, but server is running 1.20
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request