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

AdvancementDisplayType is unaccessible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • 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.

            Unassigned Unassigned
            gotitim GotiM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: