Solved namespaced key not working

Discussion in 'Plugin Development' started by Cat 700, Mar 17, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Cat 700

    when I put a namespaced key in it won't work

    code: https://pastebin.com/QnZWS5Bi

    error:

    Error occurred while enabling Mythics v1.0 (Is it up to date?)

    java.lang.IllegalStateException: Duplicate recipe ignored with ID mythics:mythicsmythiccrafter

    at net.minecraft.server.v1_15_R1.CraftingManager.addRecipe(CraftingManager.java:72) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.craftbukkit.v1_15_R1.inventory.CraftShapedRecipe.addToCraftingManager(CraftShapedRecipe.java:59) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.addRecipe(CraftServer.java:1108) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at me.cat700.mythics.mythics.onEnable(mythics.java:20) ~[?:?]

    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:351) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:432) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:366) ~[?:?]

    at com.rylinaux.plugman.command.LoadCommand.execute(LoadCommand.java:114) ~[?:?]

    at com.rylinaux.plugman.PlugManCommandHandler.onCommand(PlugManCommandHandler.java:95) ~[?:?]

    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:713) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchServerCommand(CraftServer.java:698) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.DedicatedServer.lambda$3(DedicatedServer.java:682) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.b(SourceFile:59) ~[spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_241]

    at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:918) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:911) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(SourceFile:103) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:894) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:828) [spigot-1.15.2.jar:git-Spigot-8faa8b4-13ed05d]

    at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]


    no the recipe works now its just that it is giving me that because when I reload the server or plugin it tries the same namespacedkey
     
    Last edited: Mar 17, 2020
Thread Status:
Not open for further replies.

Share This Page