Invalid Plugin.yml

Discussion in 'Plugin Development' started by spherz, Mar 26, 2013.

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

    spherz

    please help!!!!!!! my console keeps saying
    26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:512)
    26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523)
    26.03 19:48:49 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187)
    26.03 19:48:49 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
    26.03 19:48:49 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:184)
    26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:603)
    26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239)
    26.03 19:48:49 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
    26.03 19:48:49 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247)
    26.03 19:48:49 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    26.03 19:48:49 [Server] SEVERE Could not load 'plugins/ctplugin.jar' in folder 'plugins'
    im not sure why. this is my first time trying to make a plugin but i cant figure out what im doing wrong!!!!
    i will upload a zip of all my files. please take a look and see if you can help me.
    P.S. - im not sure what this plugin will do yet. im just trying to get something to load so i can see if im on the right track :)
     

    Attached Files:

  2. Offline

    seemethere

    spherz
    Can we see your plugin.yml?
     
  3. Offline

    kreashenz

    spherz Also, that is not the WHOLE stacktrace, please post the WHOLE stacktrace, and your plugin.yml..
     
  4. Offline

    DeMaggo

    This is enough of the stacktrace to find a solution:
    This suggests that there is something spelled wrong or missing in the description in the plugin.yml of the plugin "ctplugin", maybe a wrong character or a tabulator character.
     
  5. Offline

    spherz

    ill copy and paste all files for you
    plugin.yml:
    name: Ct Plugin
    main: com.spherzcreative.ctplugin.CtPlugin
    version: 1.5.1
    CtPlugin.java:
    package com.spherzcreative.ctplugin;

    import org.bukkit.plugin.java.JavaPlugin;

    public final class CtPlugin extends JavaPlugin {

    }


    (the ctplugin.java is in a package called com.spherzcreative.ctplugin)
    and i also have the bukkit api there too. im following the wiki exactly.
    my file upload didnt work with the first post i made

    i put the info in a reply

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  6. Offline

    kreashenz

    That's your problem, I think, add ( to plugin.yml ) description: Spherz plugin
     
  7. Offline

    spherz

    kreashenz
    i added that and tested it and it still says invalid plugin.yml
    this is the console :
    27.03 07:02:28 [Multicraft] Skipped 78 lines due to rate limit (30/s)
    27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:512)
    27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523)
    27.03 07:02:24 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187)
    27.03 07:02:24 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
    27.03 07:02:24 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:184)
    27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:603)
    27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239)
    27.03 07:02:24 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
    27.03 07:02:24 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247)
    27.03 07:02:24 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    27.03 07:02:24 [Server] SEVERE Could not load 'plugins/ctplugin.jar' in folder 'plugins'

    i tried to even change the package name to a unique name (not like com.soemthing.something.etc.) but nothing changed still not loading. by any chance could anyone setup a template (liek the basic thing) with just a unique package name not com.blahblahblah (that works) so i can see what it is supposed to look like so i can try to match it with mine to see where i went wrong?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  8. Offline

    Chloe-chan

    A template ?

    This is my template for basic plugins.
    Code:Java
    1. package com.gmail.chloepika.plugins.debug;
    2.  
    3. import org.bukkit.Bukkit;
    4. import org.bukkit.command.Command;
    5. import org.bukkit.command.CommandSender;
    6. import org.bukkit.event.Listener;
    7. import org.bukkit.plugin.java.JavaPlugin;
    8.  
    9. public class Debug extends JavaPlugin implements Listener
    10. {
    11. public void onEnable()
    12. {
    13. Bukkit.getServer().getPluginManager().registerEvents(this, this);
    14. }
    15.  
    16. public void onDisable()
    17. {
    18. }
    19.  
    20. public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
    21. {
    22. return false;
    23. }
    24. }


    My template plugin.yml
    Code:
    main: com.gmail.chloepika.plugins.debug.Debug
    name: Debug
    version: 1.0
    author: Chloe-chan
    description: -no desc-
     
  9. Offline

    finalblade1234

    Just a note that the Plugin.yml is case sensitive.
    (not the inside just the name)
    so dont use: Plugin.YML use: plugin.yml
     
  10. Offline

    spherz

    when i make the class file, if the name of the plugin is ctplugin (note case for everything) can the main class file be names CtPlugin or does it HAVE to be ctplugin?

    if my plugins name is ctplugin (note case) can the main .java file be CtPlugin.java? or no? im also gonna try something different to check if that works

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  11. ctplugin != CtPlugin
     
  12. Offline

    spherz

    i just figured it out i reread through the whole thing again. i realized i forgot to EXPORT it into a jar so thats where i went wrong!! THANKS SO MUCH EVERYONE FOR YOUR CONSIDERATE HELP!!!!!
     
Thread Status:
Not open for further replies.

Share This Page