Solved 'Test' Plugin not working

Discussion in 'Plugin Development' started by mbark888, Jan 10, 2016.

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

    mbark888

    Capture.PNG


    I already tried changing the Java version but that won't work.

    This is my first plugin, so please no hate.
     
  2. Offline

    AppleBabies

    Show us your plugin.yml.
     
  3. Offline

    ski23

    AppleBabies likes this.
  4. Offline

    AppleBabies

    @ski23 Really? You have to extend CommandExecutor in your main class? I'm just personally used to, even for one command, giving it it's own class, so that might be why.
     
  5. Offline

    Zombie_Striker

    @mbark888
    1. Bukkit already logs your plugins for you.
    2. You do not need to implement CommandExecutor. @ski23
    3. Did you format your plugin.yml correctly? Does the console print an error?
     
  6. Offline

    ski23

    Oh. I'm dumb. Its his main class. hehe
     
    AppleBabies likes this.
  7. Offline

    AppleBabies

    @ski23 @Zombie_Striker I had tooo sayyy...hehe. But nothing we've said has helped OP - as he has not posted his plugin.yml.
     
  8. Offline

    ski23

    well right now we cant help him until he posts it.
     
  9. Offline

    mbark888

    This is my Plugin.Yml

    Sorry I didn't reply soon enough, I did not think I would get a reply so soon.
     

    Attached Files:

  10. Offline

    AppleBabies

    @mbark888
    Your plugin.yml should be this:
    Code:
    name: Test
    main: me.mbark888.test.Test
    author: mbark888
    description: This is a test!
    
    commands:
               test:
                      usage: /<command>
                      description: A test command!
    
     
  11. @mbark888 You wrote main.me.mb... instead of main: me.mb....
     
  12. Offline

    mbark888

    It still doesn't work. When I go into the server and type /test it says it is an unknown command.
     
  13. @mbark888 do /pl and tell us if your plugin does appear in the list (and if it's green or red)
     
  14. Offline

    mbark888

    Still doesn't work

    name: Test
    main: me.mbark888.test.Test
    version: 1.0
    author: mbark888
    description: This is a test plugin!


    commands:
    test:
    usage: /<command>
    description: A test command!
     
    Last edited: Jan 11, 2016
  15. @mbark888
    There are only 3 possibilities:
    1: Your plugin.yml is wrong, go and check at the console, there should be a crash at the top of it.
    2: You have not updated the jar file inside your plugins folder, IDEs allow you to update them even if they are being used, just put the right path to export.
    3: There was an error when exporting, IDEs are not perfect, sometimes there are some errors and you have to export files again. A java project can fail to export too if there are errors on it's code, check your IDE's warnings.
     
  16. Offline

    metincasper

    Make sure you "plugin.yml" has no uppercase letters, and i think that you need to put in a version.

    Can you please poste your error in a pastebin? http://pastebin.com
     
    AppleBabies likes this.
  17. Offline

    AppleBabies

    Yes! Yes, yes, yes! ^^^^^^^^^^^
     
  18. Offline

    mbark888

    The edit button on the post or the top of the thread...?
     
    Last edited: Jan 11, 2016
  19. Offline

    Irantwomiles

    no he doesnt.

    please go on http://pastebin.com and copy your WHOLE plugin.yml in there.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  20. Offline

    ski23

     
Thread Status:
Not open for further replies.

Share This Page