Beginner Plugin Help

Discussion in 'Plugin Development' started by naliuj2525, Feb 5, 2014.

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

    naliuj2525

    So I'm trying to learn how to make plugins. I'm following Dinnerbone's tutorial on youtube. Maybe the video is outdated or he didn't explain something, but I can't get anything related to bukkit. What I mean by that is that writes "public class VipPlayerListener extends PlayerListener". I get the squiggly line under it then he goes onto saying just hit alt+enter and click add import. I don't have the option to add the import. I decided to just ignore it and take a look at the rest of the video and try to figure that issue out at the end. Well that didn't work. When he says to click insert code and click "Override Method" I don't have the option to override method. I wish I knew what these were called because other people probably have the same issue but I need to explain it.

    Oh yeah. I'm using NetBeans like Dinnerbone did in the video.
     
  2. Offline

    L33m4n123

  3. Offline

    The_Doctor_123

    Do you know Java?
     
  4. Offline

    naliuj2525

    L33m4n123 That page explains how to do it with Eclipse. I tried looking stuff up on how to do it with NetBeans but couldn't find anything. Do you know where I could find info on that or should I switch over?

    The_Doctor_123 Lol nope. This is how I learn things, I just do it. I've taught myself a lot of things by just winging it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  5. Offline

    travja

    The problem is (I used that tutorial to learn) PlayerListener is no more... it's not just a Listener. These are used as a constant for player events, block events, anything.

    You can use most of his stuff replacing PlayerListener with Listener. I also think that they way he registers events is wrong. You do it in the Main class referencing the Listener class. https://www.google.com/url?sa=t&rct...=wiLqo1PJ1DsA3VY4755S5Q&bvm=bv.60799247,d.aWM
     
  6. naliuj2525
    The problem is, in order to make Bukkit plugins, you need to know Java. No exceptions. How else are you going to learn, let alone understand what's going on or what you need to do? Tutorials can only get you so far...
     
  7. Offline

    naliuj2525

    The Gaming Grunts I teach myself when I go along. I know what you're saying but how else is someone supposed to learn a programming language? Yeah I know I could sit there and learn all the basics and everything but I like a bit of motivation, like working on some sort of project. And don't worry. I'm not just using tutorials. I will read up on things as I need them but for now can we just focus on the problem this thread was created for? Thanks.

    travja That is probably part of the problem lol.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  8. naliuj2525
    I know what you're saying, but trust me, making a plugin without knowing Java is like trying to type with your eyes closed. You may have a general idea of where the keys are, but there is no way of knowing if what you typed is correct (sorry for the horrible analogy :p )
     
    XvBaseballkidvX likes this.
  9. Offline

    MOMOTHEREAL

    You should use more recent tutorials (Like PogoStick29Dev's on YouTube) if you really like to watch videos.
    But remember that learning Java would save you/us a lot of time in your problems with Bukkit.

    I also suggest to go take a look at the official JavaDocs and Plugin Tutorial (Official, on the Wiki).
     
  10. Offline

    Developerjohn

    MOMOTHEREAL -_- Pogostick29Dev just types it and barely explains what it does
    naliuj2525 I would learn Java first like what I'm doing at the moment (atm) but not learn everything since you're only interested in just the plugins. Right now I'm using the Java for Dummies 5th Editition pdf file (I'm too lazy to buy it) :p
     
  11. Offline

    naliuj2525

    The Gaming Grunts Yeah makes sense. It's like that for almost everything. I'm still gonna try lol. And I'm obviously not trying making a huge plugin right away. I know to do slightly harder stuff as I feel ready for more in depth stuff. I'm not that dumb. Well not yet.
     
  12. Offline

    The_Doctor_123

  13. Offline

    naliuj2525

  14. Offline

    Bigrat123

    I tried Dinnerbone's tutorials a while back and they just gave me frustration... Though dinnerbone is a good coder, he's not the greatest teacher. I reccomend
    VoidNation

    ApplzjuzProgramming



    By watching both of there channels, I learned both java and the basics of the Bukkit API in under a week. They compliment each other by filling in areas the other doesn't cover and by explaining how they work very well.
     
  15. Offline

    naliuj2525

    Bigrat123 I'll check them out at some time. Thanks for the links.
     
  16. Offline

    RebzO1

    The Gaming Grunts

    i disagree i wrote my first plugin with the help of the amazin community on this forum my second i did my self and third required a little help.

    you can learn basics by 'winging it' and the moment you compile your first plugin you have the motivation to do something bigger and better i have only started learning no more than 2 weeks ago and am finalizing my 3rd and already started on 4th and 5th

    all very basic but proves you do not have to know java to get started
     
  17. RebzO1
    Learning to code in Java, or any language, is like learning to write a good essay. You need to first learn the basics to form a strong foundation and then build upon that to make your essay outstanding. If you don't start with the basics, then you won't have a strong foundation upon which you can build your knowledge. I agree, you can make a plugin without knowing much Java, but you have to ask yourself: How limited am I by my knowledge? and Is this good code? There's a difference between simply writing code and writing good code.

    I, personally, got into coding because I wanted to make plugins to enhance my server, however I was completely lost because I had no idea what was going on and the tutorials I watched didn't provide much of an answer. So, I decided to crack open some Java books and watch all of thenewboston's Java tutorials in order to learn as much about programming as I possibly could. Then, I returned to Bukkit and attempted to make plugins again and had little difficulty understanding things. Now, here I am a year and a half later making more advanced plugins and programs than I could ever dream of, all because I decided to learn the basics first.

    Sorry for my little rant, but in my personal opinion, it's much better in the long run to take the time to learn the basics, instead of diving head-first into it.
     
    Monkey_Swag likes this.
  18. Offline

    RebzO1

    The Gaming Grunts

    i agree with you, however if i need to do something i ask for help and for the most part i get it and in the process i learn.

    i read through this section of the forum at issues peple have and how they are fixed and again sometimes i learn something.

    may not be the most efficient way but it is a way
     
    naliuj2525 likes this.
  19. Offline

    naliuj2525

    The Gaming Grunts
    I mis-worded myself when I said I had no knowledge in Java. I made sure I knew the very basics before I decided to take on a project like this. I've taught myself other programming languages the same way I'm trying to learn Java right now. Java is really the first really in-depth language that I've tried learning, but I know how to use documentation and all that stuff. I completely understand what you mean by tutorials don't help too much but I find that among the bad ones, there are always some pretty good ones. And when in doubt, I know a bunch of people who know Java well.
     
  20. RebzO1 naliuj2525
    I'm not saying you guys are wrong. I just personally believe it's better to know more about what you're doing before going into it :)
     
    Commander9292 likes this.
Thread Status:
Not open for further replies.

Share This Page