Solved plugin.yml error

Discussion in 'Plugin Development' started by Jazzandmax, Nov 16, 2013.

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

    L33m4n123

    thats the closing bracket for your onCommand() but you need one for your class aswell
     
  2. Offline

    Jazzandmax

    When I add another closing bracket all the code becomes unreachable L33m4n123
     
  3. Offline

    agokhale1

    Jazzandmax
    Ok first of all, fix all of the errors in the code. Secondly, click on File -> Export -> Expand the Java folder -> Click on JAR file -> Next -> Select the plugin -> Browse -> Save to your desktop as WCP.jar.

    IMPORTANT: When exporting, make sure you have the .classpath and .project files being compiled as well.

    This should save it as a jar file, not as a folder containing non-compiled code.
    EDIT: If you have skype I can help you really quickly.
     
  4. Offline

    L33m4n123

    if I use the exact code you gave me I only have to add one } at line 42 and it works
     
  5. Offline

    Jazzandmax

    Thanks
    I'll do that

    I added a bracket on line 42 then this happens:
    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  6. Offline

    L33m4n123

    line 17 and 30.. those return true basicly makes the codes unreachable
     
  7. Offline

    agokhale1

    What is your skype, I can help you more through it
     
  8. Offline

    jacklin213

    Press Ctrl + Shift + F and re-screenshot please, it will reformat your class for you

    Also who ever told him to export his plugin as a runnable .jar file. You don't
     
    L33m4n123 likes this.
  9. Offline

    Jazzandmax

  10. Offline

    jacklin213

    here let me add you on skype, this thread is geting too hectic
     
  11. Offline

    agokhale1

    Jazzandmax
    I added you, my skype is aneesh.gokhale
     
  12. Offline

    AoH_Ruthless

    Jazzandmax
    Er... why do you have two onCommands?
     
  13. Offline

    agokhale1

    AoH_Ruthless
    Lol i called him via skype and fixed his code :p
     
  14. Offline

    Jazzandmax

Thread Status:
Not open for further replies.

Share This Page