Minecraft Plugin Mob Spawner 1.14?

Li
- in Plugins
1

I want to make an inventory where a Mob Spawner lies in it. I created this inventory with the spawner, but I get this message in the console

[11:01:28] [Server thread / ERROR]: Fatal error trying to convert DanDav v2.1.3rel3: DE / 2sdaw / plugin / commands / ItemCommand.class
org.bukkit.plugin.AuthorNagException: No legacy enum constant for SPAWNER. Did you forget to define api version: 1.13 in your plugin.yml?
at org.bukkit.craftbukkit.v1_14_R1.util.Commodore $ 1 $ 1.visitFieldInsn (Commodore.java:176) ~ [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.readCode (ClassReader.java:2210) ~ [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.readMethod (ClassReader.java:1283) ~ [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.accept (ClassReader.java:688) ~ [spigot-1.14.2.jar: git-spigot-093165d-ba575a5]
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.accept (ClassReader.java:400) ~ [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.craftbukkit.v1_14_R1.util.Commodore.convert (Commodore.java:130) ~ [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.craftbukkit.v1_14_R1.util.CraftMagicNumbers.processClass (CraftMagicNumbers.java:266) [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.plugin.java.PluginClassLoader.findClass (PluginClassLoader.java:108) [spigot-1.14.2.jar: git-Spigot-093165d-ba575a5]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName (JavaPluginLoader.java:202) [spigot-1.14.2.jar: git-spigot-093165d-ba575a5]

but if I open the inventory is a Spawner in it.

is there a way to get this error message?

-So I have created the Spawner:

ItemStack spawner = new ItemStack (Material.SPAWNER);
ItemMeta spmeta = spawner.getItemMeta ();
spmeta.setDisplayName ( "§d§lBeliebig");
spawner.setItemMeta (spmeta);

It also does not work with glass, glass panes, boats, and others!

Li

I've found the problem I've just added api version: 1.13 in the plugin.yml