Problem with plugin class.java

Discussion in 'Plugin Development' started by NimeniAltu666, Aug 14, 2014.

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

    NimeniAltu666

    Hello. First of all excuse my noobness, it's my first try at a mod :)
    To get my dev enviroment up and running the proper way, and the plugin class since it's my first time I followed this: http://wiki.bukkit.org/HUGE_Plugin_Tutorial

    So right now I am looking at the Handling Reloads section. There says I should use this block of code:
    Code:java
    1. for (Player player : Bukkit.getServer().getOnlinePlayers())
    2. {
    3. playerList.put(player.getName(), playerData(player));
    4. }


    My problem is IntelliJ idea doesn't seem to find the "playerList" (Cannot resolve symbol to be exact). What else could I use that will actually work?

    Thanks in advance and please don't be mean, it's my first try at making a mod :)


     
  2. Offline

    ElliottOlson

    Did you create the HashMap playerList? If you haven't then that would be your problem because IntelliJ cannot reference something that doesn't exist.
     
  3. Offline

    EnderTroll68

    *cough* IntelliJ is bad, use eclipse *cough*.

    God I should see a doctor about that cough.

    But anyway, you should make sure you have it defined, if you do, then just try reloading IntelliJ? It is known to be buggy *cough* I mean bad *cough* so that could just fix it.

    Also, "handling a reload" usually is not too much of an issue... I have worked with a lot of plugins before and I have only ever seen one that is broken by a reload, so I would not worry about it unless it actually is an issue once you finish
     
  4. Offline

    xTrollxDudex

    I bet you haven't actually used IntelliJ yet :p
     
    Garris0n and Zupsub like this.
  5. Offline

    EnderTroll68

    I had to use it for my java class for a year, I despised it. Eclipse has more capabilities, more customizability, and has more languages that can be used in it besides just Java
     
  6. Offline

    Garris0n

    Can you provide proof for each of these?
     
  7. Offline

    teej107

    Leave it to IDEs to help programmers and mess with programmers.
    NimeniAltu666 Are you sure you read and followedElliottOlson advice?
     
  8. Offline

    xTrollxDudex

    cough cough Ultimate Edition cough cough
     
  9. Offline

    EnderTroll68

  10. Offline

    Garris0n

    http://gyazo.com/78142eb4f69e6ead297e10de4bcb6274
    http://gyazo.com/b9902d78ca09b5a06f1f1056a1e6c50d
    ?

    Also, what makes IntelliJ better is not that it has prettier colors (I think it actually does look better, but that's subjective) but that it makes programming easier and faster. The autocomplete is the most visible example.

    Really, though, it's your loss. I just don't want any other people who see this to think Eclipse is actually in any way better.
     
  11. Offline

    Not2EXceL

    Other than the jvm languages, eclipse is terrible for other languages. Especially c++, never use eclipse with it. Stick with gcc and make files or if you need an ide, vs, or c::b

    also, intellij has a much higher learning curve than eclipse. It's functionality is at least equivalent and it speeds up coding significantly. Just because eclipse is an industry standard doesn't mean intellij is bad.
     
  12. Offline

    xTrollxDudex

    Open source license much
     
Thread Status:
Not open for further replies.

Share This Page