Solved Java Then Bukkit API?

Discussion in 'Plugin Development' started by Sean0402, Aug 26, 2014.

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

    ChipDev

    ..?
     
    hintss likes this.
  2. Offline

    octoshrimpy

    You're now my new sig.
    Sean0402 any thoughts on making them public? would love to look at them! :D
     
  3. octoshrimpy They are very simple plugins. Such as main essentials for servers. Such as for my Kit PvP Server. I have 2 mobs. One skeleton and 1 zombie. One opens your kits GUI. And one open a GUI to buy kits from money you get from killing players..

    the other things such as hub plugins is basically the main stuff. Such as right-clicking items at give you links to store/forums. Cancelling inventoryclicks and using a compass to go between servers. And for my OP-Prison I have a autosmelt like when you mine the blocks it auto goes into your inventory.. Etc... Simple yet effective.
     
  4. Offline

    octoshrimpy

    Sean0402 simple is always the best way to go. no need overcomplicating. :) I've made a few myself (for a friend's hub too) that makes players translucent when they join, another that routes people who join to a specific world location, and a few others. Currently working on a survival helper that I'll be releasing as my first plugin. :)
     
  5. octoshrimpy Nice! I'm currently coding a plugin that I don't see most servers have. It will be released within 1-2 days. It will come in handy for hub servers too! :)
     
    octoshrimpy likes this.
  6. Offline

    ChipDev

    When I got into coding with the Bukkit API, I thought Java was coffee.
    Still the same thought.
     
    es359, hintss and octoshrimpy like this.
  7. Offline

    octoshrimpy

    There is no Java without java, and no java without Java.
     
    es359 and hintss like this.
  8. Offline

    ChipDev

    Yes, You must program the Coffee maker to make Java which Keeps you awake for more Java to code.
     
    hintss likes this.
  9. Offline

    FerusGrim

    hintss likes this.
  10. Offline

    octoshrimpy

    ChipDev
    Code:java
    1. public void onWake(WakePlayerEvent e){
    2. Time timeCheck = 14h;
    3. Location desk = new Location(e.getPlayer().nearestComputer().radius(5));
    4. if(irl.getWorld().getTime().getTimezone(e.getPlayer()) < timeCheck ){
    5. if(e.getPlayer().canSee()==true){
    6. e.getPlayer().setItemInHand(MATERIAL.CUPPA_JAVA);
    7. e.getPlayer().teleport(desk);
    8. }
    9. }
    10. }

    --EDIT--
    FerusGrim my bad. D:
     
    hintss likes this.
  11. Offline

    ChipDev

    You forgot e.getPlayer().setCoding(true);
     
    hintss likes this.
  12. Offline

    fireblast709

  13. Offline

    PogoStick29

    I haven't look at my first video in forever, so I wouldn't remember. Back then, I wasn't nearly as experienced as I am now, so I can see why I would have made the mistake.
     
    0566 likes this.
  14. Offline

    Diemex

    I would say that you need very little Java knowledge to develop in the Bukkit API. Of course you need the syntax, but other than that you will be using little of the "actual" Java language.
    I learned everything I needed to know from these videos. https://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28
    From there on it was learning by failing and figuring things out.
     
  15. Offline

    xTrollxDudex

    Learn Java, BEFORE starting the Bukkit API.

    - Your code will be easier to understand, good for working in a team, good for open sourcing it for people to admire your work
    - Your code will run much faster. A limited Java knowledge leads to such invalid idioms as:
    PHP:
    if (list.contains(element))
        list.
    remove(element);
    (For more fun, I won't tell you why it's wrong :))
    - Your code will be easier to maintain and update. Poor code quality degrades update time by a major factor
     
    teej107 likes this.
  16. Offline

    teej107

    Also to mention that Bukkit is just an API and Java is the actual programming language.

    The amount of Java you know is a limiting factor on how advanced you can make your plugins. And what do you mean by "using little of the actual Java language"? When you are developing Bukkit plugins, you are using 100% Java. What other language would you be using?

    When you know the Java programming language well, you can do much more advanced things and you can solve your own problems easier. Good luck solving a problem with all Bukkit knowledge and no Java knowledge.
     
    xTrollxDudex likes this.
  17. Offline

    xTrollxDudex

    Without Java knowledge (or at least "sufficient" knowledge), you can only develop front-ended, narrow, and already discussed or C/P code off of your question of FBO.

    Although I personally think back-ended development is much cooler and broader, where you need skills to maintain, update, speed up, and improve upon it.

    Edit: You cannot call yourself a "developer" until you know programming process and at least how to use java.lang.* package, JCF, and other minimal qualifications as a programmer in general, and a Java programmer. However, you would qualify as a "bakkit 1337 supa OSM sweg kewl programmer", where others will be able to know that you need additional help on learning Java before a third party API.
     
  18. Offline

    octoshrimpy

    xTrollxDudex what would you classify front-end and back-end?
     
  19. Offline

    xTrollxDudex

  20. Offline

    octoshrimpy

    Then I've been learning back-end. Good to know. :0
     
  21. Offline

    hintss

    It was never set to false ;)
     
    octoshrimpy likes this.
  22. Offline

    ChipDev

    Good point..!
    (Man I'm the one who usually does that to my P.E Teacher :p)
    If it was true always, He would be coding in his sleep without Java.
    Without java >.<
     
  23. Ok guys. You can stop posting comments now lol
     
    octoshrimpy likes this.
  24. Offline

    es359

    New forum signature right there. Boom!
     
    octoshrimpy and ChipDev like this.
  25. Offline

    Necrodoom

    Your signature is still pizza as of this post time.
     
    hintss, es359 and FerusGrim like this.
  26. Offline

    TheHandfish


    After three pages, this thread has lost its meaning. x_x Just one tip when learning Java, video tutorials are much more helpful than text tutorials. (Or if you do a text tutorial, get a book that you can't edit on your computer) You want to write everything yourself, and believe me, online text tutorials can sometimes make you much more inclined to copy and paste which will end up in you not actually coding much, and thus, not learning the language.

    It doesn't actually take long to get a solid understanding of Java. But when you practice, I don't recommend practicing using the Bukkit API.
     
  27. Offline

    teej107

    It doesn't matter if someone copied or not. What does matter is if the person understands it. Whenever there is code given, somebody will copy it, and some person will just copy and not even try to understand it. It doesn't matter if it is a book, online text, or video. If somebody copies code without attempting to understand it, what makes you think they will try and understand it on any of the other learning methods? Everybody has their preferred learning style. I personally don't like videos and prefer reading.
     
  28. Offline

    TheHandfish

    teej107: People are lazy. Many people don't want to take the time to learn Java, let alone write out code examples. If you have enough self control and motivation to write the whole thing out without copying and pasting even though the option to do so is right smack in front of you that's awesome. But if you don't want to take the risk and go hard core, do it by the book.

    But personally, I agree, videos and books are harder than online tutorials.
     
Thread Status:
Not open for further replies.

Share This Page