Bukkit Updates Tutorial

Discussion in 'Plugin Development' started by Samkio, Mar 4, 2011.

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


    <font color="rgb(51, 102, 255)">BUKKIT Updates plugin Tutorial</font>

    Hello i have had a lot of questions on the recent changes of Bukkit. This tutorial goes over the main concerns, being namespace, onCommand, blockbreak etc...

    This tutorial shows you how to make a toggle commandable feature where when the user destroyes a torch it relays a message.


    First up links:
    Latest BUKKIT: http://ci.bukkit.org/job/dev-Bukkit/
    Eclipse: http://www.eclipse.org/
    Java SE: http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Source (Fully Annotated):
    <Edit by Moderator: Redacted mediafire url>

    <font color="rgb(0, 0, 255)">Feel free to PM me any questions you have </font>:)
    Last edited by a moderator: Dec 15, 2016
    mmelvin0 and Lolmen like this.
  2. Offline


    Awesome as always samkio.
    You'll help many people, with the new changes.

  3. Offline


    Whats the difference between System.out.println used in the earlier basic tutorial and log.info used in this tutorial?
  4. Offline


    System.out.prinln is used to show events on the servers console, if you have a server "across the globe" it doesn't help you, the log.info uses the minecraft log file to register the events so you can later have a file with what happened on your server.
  5. Offline


    This is a nice tutorial indeed. Just began making my own plugin.
    At least a plugin for saying his location (X-Y-Z) and World Time, nothing big.

    Hopefully will making complexer plugins in the future.
    So thanks for giving some brain weight to other developer. :)
  6. Offline


    I get an error saying my TD.jar: null and then it also states that I do not have an plugin.yml file in my jar, which I put in there. I R ze confuzzed... ;(
  7. Offline


    Damn. I wish I had seen this update thread earlier. Still, I thank you (Samkio) for your original tutorial, which helped me off the ground. The javadocs pushed me through the rest. :)
  8. Offline


    hey man, just watched the video and i see i need some "pre basics" before learning the basics on makin bukkit plugins.

    i guess i have to know some java programming?
    can you recommend me a basic java tuto so i can make plugins?

    i would really appreciate an answer. Thanks.
  9. Offline


  10. Offline


    friesnadrink likes this.
  11. Offline


    This was fantastic, thank you. I come from a c++ and php background.. so java is very new to me. I tried piecing together a plugin myself but kept running into [SEVERE]'s for things i didn't understand yet.

    You cover things that the written programming tutorial glosses over. For example, exporting as a jar. If you've never worked with java/eclipse before (like myself), you keep looking for a "compile" button to mash but won't find it. Not a big deal really.. a quick google answers those. But a person quickly gets frustrated in a new environment without someone to watch and at least mimic the baby steps with.

    Anyways, thanks for making this. It is really appreciated.
    Samkio likes this.
  12. Offline


    Please can someone make a text tutorial.

  13. Offline


    this is that it keeps saying

    if (block.getType() == Material.TORCH && plugin.enabled(player)){
    player.sendMessage(ChatColor.GREEN + "You broke a torch.");
    the method enabled(player) is undefined for the type.....
  14. Offline



    After I add "extends JavaPlugin" to public class Basic I want to add class constructor, but there is no such option like "Add constructor". If I manually want to add class constructor, editor underlines super() method and throw this message:

    Is there way to fix it?

    Thanks in advice and sorry for my english.
  15. Offline


    This constructor is deprecated ... just remove it.
    Xadrian likes this.
  16. Offline


    Okey, thanks, hope that plugin will still works.
  17. Offline


    I have trouble understanding most of what is going on, is there a more basic level tutorial because for me this just looks like gibberish.
  18. Offline


    I think you'll get the hang of it if you work through it. Try making the plugin as the vid plays. You may have to pause/rewind a few times though.

    If you try to use the vid as a "watch then do" type thing, it will be too much information at once and you'll be overwhelmed.
  19. Offline


    Ya ill give it another try, just drives me crazy tho when I don't understand the code, even if its a lil piece i don't get.
  20. Offline


    Good luck! If you get stuck on a part or would like something specific explained, the people here are generally very helpful. Also, the javadocs are a life saver. Though i liked the older format.. haven't gotten use to this new one yet.
  21. Offline


    Why does the yaml file have to have the main me.ashconnell.Blah.Blah, instead of the actual namespace me.ashconnell.Blah? Or is it supposed to point to the class inside the package?
  22. Offline


  23. Offline


    Thanks ;)
    This helped me a lot!
    But how can we do something like SmokeTP?
    The smoke after a tp. Could you help me with that?
    I'm working On a lightweight plugin for servers and I like to implement that, so i would be grateful if you can help me with that!
  24. Offline


    you do realize how old this thread is?
  25. Offline



    You are welcome. Basically you would listen out for a player teleport event. (If there is one) and play a smoke event at the two locations. I don't have the code handy for the smoke effect. Check the JavaDocs.
  26. Offline


    If you have any questions about SmokeTP just ask! :)
    Samkio likes this.
  27. Offline


    @Samkio Thanks ;) Well I don't care if it's an old thread, as long as I can reply and get answer it's fine ;)
    I like you Samkio ;) I'm really impressed 'bout your videos!

    @Waffletastic Thanks ;) I'll keep that in mind!
Thread Status:
Not open for further replies.

Share This Page