IllegalArgumentException: Invalid key.
Trying to test the latest version on a 1.21.4 server
[04:19:58] [Server thread/ERROR]: Error occurred while enabling MythicCosmetics v0.0.1-SNAPSHOT-b49aa1e7 (Is it up to date?)
java.lang.IllegalArgumentException: Invalid key. Must be [a-z0-9/._-]: minecraft:1508
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:218) ~[guava-33.3.1-jre.jar:?]
at org.bukkit.NamespacedKey.<init>(NamespacedKey.java:87) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.NamespacedKey.minecraft(NamespacedKey.java:181) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.AbstractCosmetic.<init>(AbstractCosmetic.java:143) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.hats.Hat.<init>(Hat.java:25) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.hats.HatManager.build(HatManager.java:57) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.hats.HatManager.build(HatManager.java:21) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.MCCosmeticsManager.loadCosmetics(MCCosmeticsManager.java:86) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.MCCosmeticsManager.load(MCCosmeticsManager.java:57) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.hats.HatManager.load(HatManager.java:31) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.managers.hats.HatManager.<init>(HatManager.java:26) ~[MCCosmetics.jar:?]
at MCCosmetics.jar/io.lumine.cosmetics.MCCosmeticsPlugin.enable(MCCosmeticsPlugin.java:118) ~[MCCosmetics.jar:?]
at MythicMobs-5.8.0-SNAPSHOT.jar/io.lumine.mythic.bukkit.utils.plugin.LuminePlugin.onEnable(LuminePlugin.java:81) ~[MythicMobs-5.8.0-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[purpur-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:669) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:618) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:772) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:534) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:369) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1251) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:344) ~[purpur-1.21.4.jar:1.21.4-2376-4bf1b98]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
The only hat that has been added to the config files:
SOMBRERO:
Material: PAPER
Model: 1508
Display: "&eSombrero"
Description:
- "&fR1N"