Solved Cannot invoke get(string) on the primitive type int bukkit

Discussion in 'Plugin Development' started by Skify, Oct 8, 2015.

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

    Skify

    Variable and map was same name, solved.
     
    Last edited: Oct 8, 2015
  2. The hashmap and the int variable have the same name??
     
  3. Offline

    Skify

    @FisheyLP
    What do you mean?

    So put variable without int?
     
  4. Offline

    Boomer

    He means you can't have two object-variables within the same scope that share the same name. You are making a hashmap called "killstreak" and an integer object "killstreak" within the same scope, and java says "WTF? Are you kidding me? Screw that"
     
    CMPSCdev, Skify and boomboompower like this.
Thread Status:
Not open for further replies.

Share This Page