The Handle (Programming Minecraft Mods / Plugins Series)

Discussion in 'Resources' started by Nijikokun, Jul 12, 2011.

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

    Nijikokun

    The Handle - Simplifying minecraft programming.

    About
    The Handle is a web series, teaching people (through and quick) how to program plugins, mods, etc.

    The series is going to start out simple, and gradually get harder as we go on. I will be learning just as you are, except I'm learning how to teach better and gaining better public speaking skills(?)

    While you learn to program. So lets learn together.

    Episodes
    Episode One: http://www.youtube.com/watch?v=Xn-F7PavwKU
    Episode Two: http://www.youtube.com/watch?v=pyO0kxysmR8
    Episode Three: http://www.youtube.com/watch?v=CeLq8IrHXwE

    Upcoming
    Check the youtube page: http://www.youtube.com/user/Nijikokun

    Todo / Etc
    - Better usage of Adobe premier, zooming etc. Using 1080p solves this issue!
    - Don't mumble or say uh. (Working on it)
    - Concise and to the point teaching.

    Remember!
    Subscribe & comment!

    Requests? Let me know, remember simple ideas do not always equal easy programming!
     
  2. Offline

    Nijikokun

  3. Offline

    PatrickFreed

    Awesome, nice to see the big devs helping the little ones out :p
     
  4. Awesome thanks a lot! Can't wait for more!
     
  5. Offline

    (infected)

    Im not sure if this is the best place for it but my YAML file is pulling up an error when i run the server can you help?
    name: one
    main: basic.source.source.one
    version: 1.1
    author: infected
    It complains about the main and the version and i have tried many different combinations and need someones advice.
     
  6. Offline

    cholo71796

    I like this. That is all.
     
  7. Offline

    Nijikokun

    use authors: [infected]
    and main, make sure it is using the case-SENSITIVE names of your packages.

    No release today due to... unrelated reasons.
     
  8. Offline

    (infected)

    Ok I will try that but it wasn't the author that was a problem I think I'm not getting the main right.
     
  9. Offline

    cholo71796

    @Nijikokun
    What's your toolbar/dropdown menu setup? Is that Rainmeter? I really like the small toolbar.
     
  10. Offline

    Techwiz101

    I need help.
    This is my main class
    Code:
    package iMotd.core;
    
    import iMotd.listeners.players;
    
    import org.bukkit.event.Event.Priority;
    import org.bukkit.event.Event.Type;
    import org.bukkit.plugin.PluginDescriptionFile;
    import org.bukkit.plugin.PluginManager;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class iMotd extends JavaPlugin {
        private PluginDescriptionFile info;
        private PluginManager manager;
     
        @Override
        public void onDisable() {
    
        }
    
        @Override
        public void onEnable() {
            info = getDescription();
    
            manager.registerEvent(Type.PLAYER_JOIN, new players(this), Priority.Low, this);
    
            System.out.println("[" + info.getName() + "] enabled.");
        }
    
    }
    
    and netbeans is telling me to make a constructor in player?

    Any idea?
    I'm following your first video.
     
  11. Offline

    Telgar

    Make a class that extends PlayerListener, and create an object of it in your main class. Then pass that object to manager.registerEvent(...) where you currently have "new players(this)".
    So, declare a private variable playerListener of class MOTDPlayerListener (or whatever) and create that class, having it extend PlayerListener. Then instantiate it:
    Code:
    //under your other variables like "private PluginManager manager"
    private MOTDPlayerListener playerListener = new MOTDPlayerListener(this);
    //your register event method
    manager.registerEvent(Type.PLAYER_JOIN, playerListener, Priority.Low, this);
    
    //Your separate class
    public class MOTDPlayerListener extends PlayerListener{
    
        private iMOTD plugin;
    
        public MOTDPlayerListener(MOTD plugin){
            this.plugin = plugin;
        }
    }
    Your event response methods are then added to the listener after the constructor, but he will go into that.
    This is essentially what he did in the first video, I guess you just missed that part about creating the listener class or something. Hope this helps!
     
  12. Offline

    Techwiz101

    Yeah, thanks.
    Fixed it actually before you posted but thanks anyway.
     
  13. Offline

    vulmer

    Woohooo! Thanks for the videos. You have rekindled my desire to learn Java programming! Even though I did not understand too much of what was being done; having super basic knowledge of Java and while using Eclipse instead of Netbeans, I was able to follow along in both videos. I look forward to future installments. Again, Thank you for this wonderful new series!
     
  14. Offline

    cholo71796

  15. Offline

    Nijikokun

  16. Offline

    Enraged

    a great possibility for me to learn plugin development :)

    keep up the good work!
     
  17. Offline

    (infected)

    Lookin good now thanks Nijikokun =)
     
  18. Offline

    cliff777

    Thank you so much
     
  19. Offline

    slinky773

    Would it be possible to program a plugin in python? I'm currently learning python, and it would be nice if you could give me a reply before deciding whether to start programming a simple plugin layout in python or just finish learning python and learn C++, or maybe even C#.
     
  20. Offline

    Techwiz101

    Unfortunately no, minecraft and bukkit are both written in Java. So all plugins also need to be written in Java.
     
  21. Offline

    Enraged

    I think it is possible because a friend said that there are python->java compiler?
     
  22. Offline

    slinky773

    Well it doesn't really matter anymore anyways, since I'm learning Java now. But I'm pretty sure you mean Jython, a compiler for Python that runs in the Java Virtual machine that is basically what you just said.
     
  23. Offline

    cliff777

    After watching your first episode, I was wondering how I get a new package inside another package. If I was going to make cliff.bukkit.plugin, how would I do that in netbeans?
     
  24. Offline

    Daniel Heppner

    Wait, on your bulletin, it says that you're stopping The Handle. What do you mean that people were copying you? You are absolutely the best person for this. You shouldn't stop. :(
     
  25. Offline

    (infected)

    Dont stop the Handle just because people are plagirising. You are the best at what you do so keep doing it. For my sake.
     
    dak393 likes this.
  26. Offline

    Ras20906

    Why are the videos private?
     
Thread Status:
Not open for further replies.

Share This Page