Solved Hashmap returns NULL?

Discussion in 'Plugin Development' started by spurkle, Jul 30, 2014.

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

    spurkle

    [​IMG]
    This is me doing /spawnitem 2. As you can see, in chat, that there is a value in a hashmap with a key 2, but for some reason it returns null.

    Any help is appreciated.

    Thank you.

    EDIT: Nvm! Parsing the args[0] to integer fixes the issue.
    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page