Solved My plugin doesn't load!

Discussion in 'Plugin Development' started by Emis, Feb 17, 2019.

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

    Emis

  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Emis

    Last edited: Feb 18, 2019
  4. Online

    timtower Administrator Administrator Moderator

    @Emis org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.emis.labaspasauli'
    Main in the plugin.yml needs to have .Main after it, it is classpath and main class name.
     
  5. Offline

    Emis

    Oh thanks, I will try it :)

    It doesnt work :( if you need server log: https://pastebin.com/NVSZ9hYE

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 18, 2019
  6. Offline

    KarimAKL

    @Emis Try replacing the "tabs" in your plugin.yml with 2 spaces.
     
  7. Offline

    Emis

    I always put 2 spaces instead of tab, btw do I need use spaces on name, version, author, main, and description? No other ideas?
     
    Last edited: Feb 18, 2019
  8. Offline

    Jeyge

    The error tells you exactly where the tab is in your plugin.yml. As for always using 2 spaces, some editors will automatically replace spaces with tabs so that may be where the tab came from.
    Code:
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
    found character      '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
    in 'reader', line 8, column 1:
            hello:
        ^
    
     
  9. Offline

    Emis

    @Jeyge still not working....I replaced tab with spaces and still its saying the same thing.
     
    Last edited: Feb 18, 2019
  10. Offline

    Tango_

    Try pasting this in

    Code:
    name: LabasPasauli
    version: 1.0
    author: Someone
    main: me.emis.labaspasauli
    description: Something about description
    commands:
        hello:
          usage: /<command>
          description: Description
          aliases: [hi]
     
  11. Offline

    Emis

    Thanks!!! It worked!! Btw I added the .Main at the end of "me.emis.labaspasauli".
     
Thread Status:
Not open for further replies.

Share This Page