Solved Plugin not Loading

Discussion in 'Plugin Development' started by 61352151511, May 18, 2014.

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

    61352151511

    I'm completely new to making bukkit plugins, I just read over a quick tutorial and from what I can tell have it all right, All this plugin does right now is add a command "/trismite" that will make lightning strike in a triangle around you (Currently only does one) I got the jar and put it in my server and it isn't loading.

    https://github.com/SixOneThree/BaconEvent

    There's only 3 files in there, the BaconEvent.java, BaconEventCommandExecutor.java, and plugin.yml Sorry that it starts at Downloads, I'm also new to actually using github and don't know how to prevent that from happening. Any help on why it doesn't load would be appreciated.
     
  2. Offline

    LandonTheGeek

    61352151511
    Any errors? Also, make sure you 'return true;' on your if statements to stop the code.
     
  3. Offline

    61352151511

    No errors in console that I can see, I'll set up a testing space on my computer and try it on that because I was using a server with a few more plugins that already game errors, also where's the spot I should have return true?
     
  4. Offline

    LandonTheGeek

  5. Offline

    61352151511

    So apparently the plugin.yml is invalid
    error (open)

    [15:22:55] [Server thread/ERROR]: Could not load 'plugins\BaconEvent-0.0.1-SNAPSHOT.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:355) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.bukkit.craftbukkit.v1_7_R3.CraftServer.<init>(CraftServer.java:317) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at net.minecraft.server.v1_7_R3.PlayerList.<init>(PlayerList.java:68) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at net.minecraft.server.v1_7_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token; found character'\t' that cannot start any token
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:591) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:232) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit-1.7.9-R0.1.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]
    ... 8 more

    Any idea of what is invalid about it?
     
  6. Offline

    LandonTheGeek

    I see! :)

    Replace the tabs with spaces in the plugin.yml
     
  7. Offline

    61352151511

  8. Offline

    LandonTheGeek

    No problem!
     
  9. Offline

    ZodiacTheories

  10. Offline

    LandonTheGeek

  11. Offline

    61352151511

    Thanks but suddenly it worked after just spam clicking the button I guess it decided to stop fighting
     
    HelpfulBeast likes this.
Thread Status:
Not open for further replies.

Share This Page