-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
CraftBukkit 1.15
-
FastCraft
-
Yes
At the moment it's only possible to specify one api-version in the plugin.yml, but it is possible to support and build against multiple API versions in a single plugin.
For my plugin FastCraft, I support CraftBukkit 1.7-1.15+. For breaking API changes, I have different dependencies I inject (compiled against different API versions), and when the plugin starts it chooses between them based on the server's API version.
I currently use `api-version: 1.13`, since that allows any current server version to use it. But, if there's ever a new version that drops backwards compatibility again, it'll be impossible to let my plugin work on new and old servers (even if it is able to).
Bukkit PR: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/594/overview