How to make a Bukkit plugin (No bad practice)

Discussion in 'Resources' started by bwfcwalshy, Oct 29, 2014.

Thread Status:
Not open for further replies.
  1. Hello I am bwfcwalshy, otherwise known as Walshy and I am here to make a Bukkit plugin tutorial series without using bad practice. If people can help and make things that I can add it then please do!

    Part 1: Basic Setup
    Part 1 (open)

    To start your programming you need a project. Make one like in the picture below and call it what the plugin will be called: [​IMG]

    To start of your development you need a package name, I like to use com.bwfcwalshy.plugin but of course for you it will be com. then your name/username . the plugin you are making.

    Now to start coding your plugin! You need to make your main class which I like to call Main. You then need to extend it to JavaPlugin (shown below)
    [​IMG]

    Then add:
    Code:java
    1. @Override
    2. public void onEnable(){
    3.  
    4. }
    5. @Override
    6. public void onDisable(){
    7.  
    8. }


    Overall class:
    [​IMG]
     
  2. Offline

    CraftCreeper6

    bwfcwalshy
    You could add some info :) (Said in a friendly laughy way)
     
  3. CraftCreeper6 Yeah I accidentally submitted the post. There is now a first part.
     
  4. Offline

    CraftCreeper6

    bwfcwalshy
    You need to upload the images to Imgur
     
  5. Offline

    teej107

  6. Offline

    CraftCreeper6

  7. Offline

    CraftCreeper6

  8. Better formatted to save space and altogether look better.
     
  9. Offline

    Cirno

    There's already a bad practice:
    Package naming convention. You don't use "com." + your username, unless you own that domain.
    I mean, you can use it, it's not illegal or anything, but it's a standard to just name it whatever domain you own, or if you don't own a domain, use your email.
     
    Skyost and Gamecube762 like this.
  10. Offline

    rbrick

    Cirno I can tell it is bad practice, your signature is panicking about it.
     
  11. Offline

    xTrollxDudex

    http://bwfcwalshy.com/ actually exists, you just get a random 403
     
  12. Offline

    Cirno

    I meant in general; I don't think everyone here owns the .com domain for their username.
    It would be pretty awesome if I owned cirno.com though.
     
  13. xTrollxDudex Yeah it is 403 right now, I am redoing it.
     
Thread Status:
Not open for further replies.

Share This Page