Kickstarter - Plugin codegenerator

Discussion in 'Resources' started by s1mpl3x, Jul 28, 2011.

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

    s1mpl3x

    inspired by @Dinnerbone 's plugin generator i tried to push this a litte further and created Kickstarter.

    Kickstarter is a Java Desktop Application which does basically the same thing as the plugin generator but creates a bit more code so repetitive tasks as setup configuration, register listeners and so on is automated and you can start to implement the functionality of the plugin without being hold back by stucture stuff.

    Kickstarter is able to produce the code for:
    • Commands
    • Tasks
    • Listeners
    • Configuration
    • the main-class
    • plugin.yml
    The GUI offers a easy way to enter the data (at least imo) and to export the plugin afterwards.

    Download:

    [​IMG][​IMG]

    Screenshots:
    Show Spoiler


    The Code generated is (as far as i tested it :3 ) valid and Craftbukkit loads it without problems.
    Although the structure might be not 100% solid but yeah... it works and im happy for every suggestion on how to impove the quality of the code produced.

    So i hope it works and it is useful for someone and any feedback is appreciated

    Changelog:

    v0.2:
    updated listeners to build 1185
    fixed listener import @ mainfile
     
  2. Offline

    Col1500

    This will help a lot of people, I'm pretty much a newb and even I can easily use this.
    It also makes it so that you don't have to memorize so many events :3. Thanks a lot!
     
  3. Offline

    Celeo

    This looks really great! Thought creating this code is not hard, it can be very boring due to the repetition! I'll try this out when I get home.
     
  4. Offline

    LoneWold1245

    Hitting the DL button nice work :D
     
  5. Offline

    manill66

    Do I put the .jar in my plugins folder even though I want to make plugins for my server?
     
  6. Offline

    s1mpl3x

    you can place it anywhere you want, just doubleclick it like a .exe
     
  7. Offline

    manill66

    I just tried this out and it looks amazing! How do you test your new plugin now?
     
  8. Offline

    s1mpl3x

    create a new project in eclipse, netbeans wherever and copy the output into your new project and from there it is business as usual
     
  9. Offline

    manill66

    Okay thanks, hope this works!
     
  10. Offline

    tips48

    This is pretty freakin awesome :p The only thing I would like is to select a custom package name, besides that...tested all the features, passes with flying colors
     
  11. Offline

    Tster

    A work of art, I feel no shame using this, why make life harder
    Followed

    Edit:
    Nice, but not my preffered package format
    Edit:
    Or my code format, good plugin, but not my scene

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

    tips48

    Moar customizable? :D Maybe allow devs to provide the templete or something like that, that would be FREAKIN AWESOME xD
     
  13. Offline

    s1mpl3x

    hm well make the package customizable is not a problem and stuff like only 1 command executor for all commands or use the onCommand in the MainClass... But what apart from that doesn't fit your code format/style?
     
  14. Offline

    tips48

    Thats good, although I like the command executors :p Apart from that, things like Not defining the Logger in the top, Using a PDF(I use a double for the main version and int for the sub version, as I use a custom Auto-Updater library that requires so), Not defining the prefix in the top.. Just little things, I guess everyone codes in their own way :)
     
  15. Offline

    s1mpl3x

    Yes and because everyone does code different, the codegen only produces 'basic' code that should fit just fine for the most basic plugins, and even for more complex ones it provide a base to work with. ;)
    Sure you have to change a lot to fit for stuff like an auto updater or whatever extension you want to add. Adding all those stuff to the codegen would just be too much but you can edit the source or the templates so they fit your needs :)
     
  16. Offline

    tips48

    Yea, i guess. I don't know, more configurable = better :p
     
  17. Offline

    s1mpl3x

    small update:
    added a package textfield
    fixed exit button not working
    fixed event tabs (server/vehicle)

    edit: some more fixes for the package stuff..
     
    Vynlar and tips48 like this.
  18. Offline

    thehutch

    Make an update for the new command API
     
  19. Offline

    s1mpl3x

  20. Offline

    Delocaz

    I really like this.
     
  21. Offline

    Ineentho

    Great program, but I found a bug:
    It tries to include
    Code:
    import me.ineentho.worldswitcher.listener.Listener_Player;
    but the package is called
    Code:
    import me.ineentho.worldswitcher.listeners.Listener_Player;
     
  22. Offline

    ZNickq

    :O
    You sir,are epic!
     
    thehutch likes this.
  23. Offline

    EdenCampo

    Wow, I like it,but one thing,learning from this,nope.
    Well,yeah it's a newb progrem,It makes life easier,but if you really wanna be a developer,even start yourself,learn basics,then use the plug to make your life easy..,

    ANYWAY,awesome thing,thanks for this.
     
  24. Offline

    s1mpl3x

    thanks to your feedback, updated to version 0.2.
    • updated listeners to build 1185
    • fixed listener import @ mainfile
    i'll may add permissions and change the configuration gui when i have more time
     
    undeadmach1ne likes this.
  25. Offline

    drampelt

    Version 2 is having issues with commands (well for me anyways). I configured a command, it said it was going to create that file, but then the commands package is empty and the main class shows: getCommand("/mycommand").setExecutor(new CommandExecutor_/mycommand(this));
     
  26. Offline

    bobbysmithyy

  27. Offline

    dakoslug

    You should add a permission field when setting up commands.
     
  28. Offline

    AdvsNoob

    BUMP: I would love to see this updated :]
     
  29. Offline

    BlackHawkLex

    Same here, update this pls :).
     
  30. Offline

    Codex Arcanum

    Could you please update this for the new 1.1R5+ changes?
     
Thread Status:
Not open for further replies.

Share This Page