Development Assistance Plugin Does Not Load Correctly - Spams tbe console (log provided)

Discussion in 'Plugin Help/Development/Requests' started by ProfessorEnder, May 28, 2015.

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

    ProfessorEnder

    PLEASE NOTE THAT THE FILES PROVIDED HAVE BEEN UPDATED. THE MOST RECENT VERSIONS SHOULD BE CORRECT IN THE LINKS OF THIS POST, HOWEVER, IF NOT, THE MOST RECENT LINKS CAN BE FOUND A LITTLE WAY DOWN THIS PAGE.

    Hi,

    I don't know whether this is the correct forum to post this question in, but anyway, I am doing, so here goes.

    I recently started to learn how to code Bukkit plugins using the following video:I copied it out word for word and encountered the following problem.

    I loaded the server up, and the console was spammed with the following:
    http://pastebin.com/4J1qhH61

    Here's what I've got in my Plugin.YML file: http://pastebin.com/cDUNuCRS

    Here's what was in my main .java file: http://pastebin.com/dN7zQpbK

    If anyone could help me, that would be very much appreciated.


    Many thanks,


    Prof
     
    Last edited: May 28, 2015
  2. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
    @ProfessorEnder You have tabs in your plugin.yml, replace them with spacebars
     
  3. Offline

    ProfessorEnder

    Last edited by a moderator: May 28, 2015
  4. Offline

    BizarrePlatinum

    @ProfessorEnder description should all be on the same line, description: stuff. Not sure if it hurts it or not, but description is capitalized on your command.

    @nverdier was trying to say that it shouldn't be capitalized, as it was in his yml.
     
    Last edited: May 28, 2015
  5. Offline

    nverdier

    It isn't supposed to be capitalized.
     
  6. Offline

    ProfessorEnder

    That's great - thanks very much.

    Actually, it turns out that it's not working.
    Console log (open)
    Loading libraries, please wait...
    [22:12:17 INFO]: Starting minecraft server version 1.8
    [22:12:17 INFO]: Loading properties
    [22:12:18 INFO]: Default game type: SURVIVAL
    [22:12:18 INFO]: Generating keypair
    [22:12:18 INFO]: Starting Minecraft server on *:25565
    [22:12:18 INFO]: This server is running CraftBukkit version git-Bukkit-3fc97ff (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    [22:12:18 ERROR]: Could not load 'plugins/YouTube.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[craftbukkit.jar:git-Bukkit-3fc97ff]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:288) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.<init>(CraftServer.java:250) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at net.minecraft.server.v1_8_R1.PlayerList.<init>(PlayerList.java:69) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at net.minecraft.server.v1_8_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:133) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:484) [craftbukkit.jar:git-Bukkit-3fc97ff]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    [22:12:18 INFO]: Preparing level "world"
    [22:12:18 INFO]: Preparing start region for level 0 (Seed: -458484287924963499)
    [22:12:19 INFO]: Preparing start region for level 1 (Seed: -458484287924963499)
    [22:12:19 INFO]: Preparing start region for level 2 (Seed: -458484287924963499)
    [22:12:20 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [22:12:20 INFO]: Done (1.581s)! For help, type "help" or "?"


    Plugin.YML file (open)

    name: YouTube

    main: me.ProfessorEnder.YouTube.YouTube

    version: 1.0

    description: My First Bukkit Plugin

    commands:
    sendme:
    description: Sends the player a message.



    Any help at all with this would be very much appreciated.

    Thanks,
    Prof
     
    Last edited by a moderator: May 29, 2015
Thread Status:
Not open for further replies.

Share This Page