How to make a plugin (HELP)

Discussion in 'Bukkit Help' started by Rever, Aug 3, 2012.

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

    Rever

    Okay I've watched tons of videos and read tons of tutorials and I kinda get it but what I don't get it is how to make commands. Could some1 pls show me a video they've made or has taught them how to make their first plugin.

    I'm making a god mode plugin so I want a command /god on but I don't knw how to do that. I also want a cool down but again I don't knw how to do that. I don't want gos to hit ppl or hurt them but again I don't knw ow to do that.

    As u can see I'm frustrated cause I've been trying for hours by trying to figure it out. I've done all the simple things but I do not knw how to do the commands as I said.


    Thx a ton

    Rever

    Bump i really need to make this plugin

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

    Slayer9x9

  3. Offline

    jacklin213

    Make a plugin.yml file
     
  4. Offline

    Rever

    So if I write
    commands:
    GodMode

    Will that just make god mode. I'm not acting stupid because I knw it won't work but I need more of an explanation pls
     
  5. Offline

    -_Husky_-

    It will register the command, you then need to code the command.

    You can have spaghetti there, but you then need to code that command to do what you want
     
  6. Offline

    Rever

    Okay that's what I thought

    Do u ave a tutorial on this
     
  7. Offline

    -_Husky_-

    I don't but this is a basic one here.

    Code:
    name: MyPluginName
    main: package.class
    description: This is a description of my plugin!
    version: 1.0
    commands:
      test:
        description: This is a test command!
        usage: /test
     
  8. Offline

    Rever

    Okay is it really that easy too cause I may be over looking this. I'm use to coding iPhone and iPad stuff. I also thought that u would write that but add way more code

    So this would be mine

    Code:
    name: GodeMode
    main: package.class
    description: godMode enables protection around drowning falling and lava!
    version: 1.0
    commands:
      GodMode e:
        description: This will enable GodMode!
        usage: /godm e
    [/quote]

    Is that all

    Thx a ton
     
  9. Offline

    -_Husky_-

    [/quote]
    Change it to
    Code:
     name: GodeMode
    main: Rever.godmode
    description: godmode enables protection around drowning falling and lava!
    version: 1.0
    commands:
      godmode:
        description: This will enable GodMode!
        usage: /godmode
    Where it says 'main: ' it means like, the location of the class that 'extends JavaPlugin'

    So, if my class was in 'Rever/godmode.class' i put 'Rever.godmode'
     
  10. Offline

    Rever

    Change it to
    Code:
     name: GodeMode
    main: Rever.godmode
    description: godmode enables protection around drowning falling and lava!
    version: 1.0
    commands:
      godmode:
        description: This will enable GodMode!
        usage: /godmode
    Where it says 'main: ' it means like, the location of the class that 'extends JavaPlugin'

    So, if my class was in 'Rever/godmode.class' i put 'Rever.godmode'[/quote]
    O wow this seems really easy thx so much and is this all u need to do?

    Bump I'm sorry for bumping but something glitches when I tried to reply

    Change it to
    Code:
     name: GodeMode
    main: Rever.godmode
    description: godmode enables protection around drowning falling and lava!
    version: 1.0
    commands:
      godmode:
        description: This will enable GodMode!
        usage: /godmode
    Where it says 'main: ' it means like, the location of the class that 'extends JavaPlugin'

    So, if my class was in 'Rever/godmode.class' i put 'Rever.godmode'[/quote]
    Bump read my post above

    Read my post above pls husky

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

    jacklin213

    so whats not working?
     
  12. Offline

    -_Husky_-

    Yes, thats all you do in the plugin.yml
     
Thread Status:
Not open for further replies.

Share This Page