Using two events at the same time?

Discussion in 'Plugin Development' started by Sabersamus, Feb 23, 2012.

  1. Offline

    Sabersamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Code:java
    1.  
    2.  
    3. <3
    4.  
  2. Offline

    Jogy34

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No, because as long as you have the HashMap set up as <Item, Player> if you use hashmap.get(item) it returns the player. Again HashMap's store data using a Key and a Value. In this instance Item is the Key and Player is the Value so if you use hashmap.get(Key) it returns whatever Value associated with it is and here would be a Player.

    This post has been edited 3 times. It was last edited by Jogy34 Feb 23, 2012.
  3. Offline

    Sabersamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    alright thank you, just making sure :)

Share This Page