How to make a plugin (HELP)

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

  1. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  2. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bump i really need to make this plugin

    This post has been edited 1 time. It was last edited by Rever Aug 3, 2012.
  3. Offline

    Slayer9x9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  4. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make a plugin.yml file
  5. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  6. Offline

    -_Husky_-

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 1 time. It was last edited by -_Husky_- Aug 4, 2012.
  7. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay that's what I thought

    Do u ave a tutorial on this
  8. Offline

    -_Husky_-

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 1 time. It was last edited by -_Husky_- Aug 4, 2012.
  9. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  10. Offline

    -_Husky_-

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [/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'
  11. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  12. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bump I'm sorry for bumping but something glitches when I tried to reply
  13. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  14. Offline

    Rever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Read my post above pls husky
  15. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    so whats not working?
  16. Offline

    -_Husky_-

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes, thats all you do in the plugin.yml

Share This Page