AdvancementDisplayType is unaccessible

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • Environment:

      Windows 11; Java 17; Maven

    • spigot-api 1.19.3-R0.1-SNAPSHOT
    • Yes

      Using AdvancementDisplayType in spigot api throws a compilation error:

      java: cannot access org.bukkit.advancement.AdvancementDisplayType
        bad class file: /C:/Users/<username>/.m2/repository/org/spigotmc/spigot-api/1.19.3-R0.1-SNAPSHOT/spigot-api-1.19.3-R0.1-SNAPSHOT.jar!/org/bukkit/advancement/AdvancementDisplayType.class
          class file is invalid for class org.bukkit.advancement.AdvancementDisplayType
          Please remove or make sure it appears in the correct subdirectory of the classpath.
      

      I tested it in a simple event listener:

      @EventHandler
      public void onAdvancement(PlayerAdvancementDoneEvent event) {
         System.out.println(event.getAdvancement().getDisplay().getType());
      }
      

      Please mind, that the error is on Maven compilation, not on the server.

            Assignee:
            Unassigned
            Reporter:
            GotiM
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: