Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6872

Add `v1_18` for `ApiVersion.Target` plugin annotations

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running Paper version git-Paper-19 (MC: 1.18) (Implementing API version 1.18-R0.1-SNAPSHOT) (Git: 892c292)
    • Yes

      Please add `v1_18` for `ApiVersion.Target` plugin annotations. Making constructor public would also be nice, in case anyone want to use some custom/new API version without waiting for update.

       

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/plugin-annotations/browse/src/main/java/org/bukkit/plugin/java/annotation/plugin/ApiVersion.java

      Example:
      ```java
      @Plugin(name = "MyPlugin", version = "0.1")
      @ApiVersion(ApiVersion.Target.v1_18) // Error, v1_18 does not exist currently :C
      public class MyPlugin extends JavaPlugin
      //...
      ```
       

            Unassigned Unassigned
            AgainPsychoX Patryk Ludwikowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: