can some one help with this

Discussion in 'Plugin Development' started by mrzeapple, Apr 23, 2013.

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


    ok i'm not sure what is wrong with this but the plugin won't load onto the server console
    ShapedRecipe beef = new ShapedRecipe(new ItemStack(Material.RAW_BEEF)).shape("***", "***", "***").setIngredient('*', Material.ROTTEN_FLESH);
  2. Offline


    what is the console log?
  3. Offline


    nothing it doesn't show up the plugin
  4. Offline


    what bukkit api do you use
  5. Try replacing the * by A's or something, make sure you have a right plugin.yml, and you are on the right version of Bukkit/CraftBukkit!
  6. Offline


    I'm on the latest version dev build and this is what is in my plugin.yml:
    name: Converter
    main: me.Matthew.bfc.main
    version: 1.0
    description: >
        description: iron to gold
  7. Offline


    That plugin.yml isn't valid at all, having a plugin description of ">" and then a blank line with "Food!" after that isn't going to make Bukkit happy. Additionally, I'm not entirely sure if this is required, but it would be best to add a "usage" line to your command registry.
  8. Offline


  9. Offline


    It doesn't matter if the actual formatting would parse or not if he's missing a required field. The whole plugin could be perfect, and still be ruined just by one missing line.
    microgeek likes this.
  10. And make sure your main class is right (uppercase and stuff).
  11. Offline


    But when the plugin.yml was invalid, shouldn't he get an error?
    kreashenz likes this.
  12. Offline


    Where are you putting those lines? They should be in the onEnable() or a little method called into the onEnable().. Post your onEnable, please.
  13. Offline


    it is in my onEnable()
  14. mrzeapple
    I haven't seen you saying anything about trying:
    Even though it shouldn't have mattered...

    Actually you say that the plugin doesn't even load, then it's really up to you to check if the plugin jar is actually in the plugins folder and all that... once it's installed there MUST be some kind of output.
  15. Offline


    Not necessarily at all. If the actual syntax is right, but a field or line is off or missing, depending on what that line is, an error might not be thrown at all. That's why it's necessary for us to ask to see the file itself, as the only way for us to help fix the problem is by actually looking at it.
  16. Offline


    The only bukkit api there is? lol
Thread Status:
Not open for further replies.

Share This Page