Beginner Question

Discussion in 'Plugin Development' started by tjs238, Aug 9, 2011.

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

    tjs238

    I have made a few test plugins as my first few steps into Java script. I have watched 10 plus tutorials following instructions perfectly and I still can't get my plugins to work! I export them from Eclipse and NetBeans and they still dont work. One of my plugins will be attached in like 15 min. Can anyone explain or help me with how to make it work?

    Link to my JAR I uploaded. http://www.megaupload.com/?d=2XOXDGX7

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  2. Offline

    Master24

    I'll have a look at it. Just a moment
     
  3. Offline

    tjs238

    Thanks! You have no idea how close i was to chucking my computer out a window i was :)
     
  4. Offline

    Master24

    @tjs238
    So I think your commands don't work right?
    You have to register the commands in the plugin.yml.
    For example:
    Code:
    commands:
        vip:
          description: Your command description
          permission: Your permission node (maybe vip.use)
          usage: |
                /<command> <pass>
    With this in your plugin yml it should work
     
  5. Offline

    tjs238

    @Master24
    I have something like that. But wouldn't I need to call in permissions into the class files?

    Code:
    name: HelloWorld
    author: Tjs238
    main: me.tylerludka.plugins.helloworld
    version: 1.0.0
    commands:
      vip:
        description: Teleport yourself to the main vip area
        usage: |
              /<command> <pass>
    Thats my plugin.yml
     
  6. Offline

    Master24

    @tjs238
    No you don't. Just add this to the plugin.yml
    Code:
    commands:
        vip:
          description: Your command description
          permission: Your permission node (maybe vip.use)
          usage: |
                /<command> <pass>
    EDIT: Tried it out. Now the vip command will work. ;)
     
  7. Offline

    tjs238

    It still doesnt work for me :( I added permission: vip.use and it still doesnt work right!
     
  8. Offline

    Master24

    @tjs238
    The commands still don't work?
    please send me your new .jar File
     
  9. Offline

    tjs238

  10. Offline

    Master24

    No not the old. I mean the new where you added this code in your plugin.yml

    Code:
    commands:
        vip:
          description: Your command description
          permission: Your permission node (maybe vip.use)
          usage: |
                /<command> <pass>
     
  11. Offline

    tjs238

    @Master24 That was the new one........
     
  12. Offline

    Master24

    Are you sure??
    Because when I open your plugin.yml it's still without the commands.
    Did you really add the code i gave you in your plugin.yml?
     
  13. Offline

    tjs238

  14. Offline

    Master24

    Yes now it's a different one but the plugin.yml is still the same.
    Please replace your plugin.yml with this one here : plugin.yml
    Then it should work
     
    tjs238 likes this.
  15. Offline

    tjs238

    @Master24
    Thank you so much! It works now! I dont know what you did to make it work! I hit save and i guess it never saved! Oh well thanks so much master! Now i can finish my other plugin.
     
  16. Offline

    Master24

    Nice to hear that it works now :)
     
Thread Status:
Not open for further replies.

Share This Page