Solved My Plugin Wont Run (1.7.10/1.7.9)

Discussion in 'Plugin Development' started by BladdonB, May 23, 2015.

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

    BladdonB

    I was making a kitpvp plugin and I exported it. I put it on my bukkit server and apparently the plugin.yml is incorrect and I don't know how to fix it


    Code:
    
    C:\Users\admin\Desktop\Learning Bukkit\Testing Server12341.7>java -Xmx2048M -jar
    bukkit.jar -o true
    Loading libraries, please wait...
    [15:44:51 INFO]: Starting minecraft server version 1.7.10
    [15:44:51 INFO]: Loading properties
    [15:44:51 INFO]: Default game type: SURVIVAL
    [15:44:51 INFO]: Generating keypair
    [15:44:51 INFO]: Starting Minecraft server on *:25565
    [15:44:52 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.
    2-24-g07d4558-b3116jnks (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPS
    HOT)
    [15:44:52 ERROR]: Could not load 'plugins\KitPvp.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:160) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:133) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.ja
    va:364) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.<init>(CraftServer.java:32
    6) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at net.minecraft.server.v1_7_R4.PlayerList.<init>(PlayerList.java:68) [b
    ukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at net.minecraft.server.v1_7_R4.DedicatedPlayerList.<init>(SourceFile:14
    ) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.jav
    a:133) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java
    :436) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6
    28) [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the n
    ext token; found character      '\t' that cannot start any token
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:358) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:591) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~
    [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133) ~
    [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
    [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
    [bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[bukkit.jar:gi
    t-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[bukkit.jar:git-Bukkit-1
    .7.9-R0.2-24-g07d4558-b3116jnks]
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:232) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:155) ~[bukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
            ... 8 more
    [15:44:52 INFO]: [iConomy] Loading iConomy v7.0
    [15:44:52 INFO]: Preparing level "world"
    [15:44:52 INFO]: Preparing start region for level 0 (Seed: 3605749343399599842)
    [15:44:52 WARN]: Could not get information about this CraftBukkit version; perha
    ps you are running a custom one?: FileNotFoundException
    [15:44:52 WARN]: Could not get latest artifact information: FileNotFoundExceptio
    n
    [15:44:53 INFO]: Preparing spawn area: 46%
    [15:44:54 INFO]: Preparing start region for level 1 (Seed: 3605749343399599842)
    [15:44:54 INFO]: Preparing start region for level 2 (Seed: 3605749343399599842)
    [15:44:55 INFO]: [iConomy] Enabling iConomy v7.0
    [15:44:55 INFO]: [iConomy - April Fools] Enabled (57 ms)
    [15:44:55 INFO]: [iConomy] Hello, I'm Nijikokun. Yes, this is an April Fools jok
    e, but '/money top' was fixed! Enjoy :) - Rare Version!
    [15:44:55 INFO]: [iConomy - April Fools] Purged accounts with default balance.
    [15:44:55 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [15:44:55 INFO]: Done (2.789s)! For help, type "help" or "?"
    >
    
    Code:
    name: KitPvp
    version: 1.0
    main: me.pvp.main.Main
    commands:
      starter:
        description: Starter Kit
      amateur:
        description: Amateur Kit
    
    Thanks For Helping! Respond as soon as possible!
     
  2. Offline

    timtower Administrator Administrator Moderator

    @BladdonB You have tabs in your plugin.yml, replace them with spacebars and you are good to go
     
  3. Offline

    BladdonB

    I'm confused can you show me an example?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @BladdonB I can show one, but you won't see much.
    Where you have any indentation: select the indentation, hit spacebar till it is all replaced.
     
    teej107 likes this.
  5. Offline

    Zombie_Striker

    @BladdonB
    Here's an example: Turn this
    Code:
    [Tab]starter:
    To this:
    Code:
    [Space][Space][Space]starter:
     
  6. Offline

    BladdonB

    I kinda understand, can you just copy my plugin.yml and fix it then send me it? Much will be appreciated!
     
  7. Offline

    Zombie_Striker

    @BladdonB
    Are you lazy, or just want to copy and paste code?
    For each tab in the config, replace it with three spaces.
     
  8. Offline

    BladdonB

    EDIT: What I said waz very retarded and I was not thinkin straight
     
    Last edited: May 23, 2015
  9. Offline

    Zombie_Striker

    So what good is it then if I post it here? You can't do anything to see if it works.
     
  10. Offline

    BladdonB

    lemme try what u guys said

    I tried it and it doesnt work, please help meh
     
  11. Offline

    B3N909

    Ok, step one is to learn computer knowledge before attempting to code. You literally are just replacing tab indents with space indents. Please mark thread as Solved
     
  12. Offline

    BagduFagdu

    Delete the entire thing and type it manually. Use [Space] and [Enter or Return] instead of [Tab]
     
  13. Offline

    teej107

    The one thing about YML that you need to know.

    [​IMG]
     
    timtower and nverdier like this.
  14. Offline

    BladdonB

    I did replace them, it still is wrong, It says something about description when it doesn't load
     
  15. On netbeans i think you can use tab xD
     
  16. Offline

    BladdonB

    I tried it and now it will run, thanks man (I also used eclipse text editor instead of notepad++)

    Thank You for all of your help, I am just learning and I would like to thank you!

    EDIT by Timtower: merged posts
     
    BagduFagdu likes this.
Thread Status:
Not open for further replies.

Share This Page