Solved No legacy enum constant error

Discussion in 'Spigot Plugin Development' started by PartyMC, Feb 22, 2020.

  1. Im currently coding some stuff for my plugin. One of these things is giving an item when a player joins. It all works fine, except for me getting a really big error in my console. It says:

    Code (Text):
    org.bukkit.plugin.AuthorNagException: No legacy enum constant for PLAYER_HEAD. Did you forget to define api-version: 1.13 in your plugin.yml?
    Im coding my plugin for 1.14.4, and I am also using the 1.14.4 spigot file for coding. But the error says I have to define api-version as 1.13. Does any of you know why, and how I can fix this?
  2. On your plugin.yml put api-version: 1.13
  3. But why would I put 1.13 if I am using 1.14? I dont get that. I tried both putting 1.13 and 1.14 and I didnt get any errors when using them. Which is the best to use? My guess is 1.14
  4. If you're developing on 1.14, put 1.14.