Boolean values for a player

Discussion in 'Plugin Development' started by Zachster, Sep 1, 2012.

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

    Zachster

    How would you set and get boolean values for each player? e.g. basically see if player has some sort of something enabled like if they run a command to enable or disable something for them

    I know it is a noob question but I just want to know.
     
  2. Offline

    libraryaddict

    You could use permissions if you want to check if they have permissions.
    You could also store the booleans into a hashmap for each player.
     
  3. Offline

    Zachster

    How would I do hashmaps? I looked at the plugin tutorial on the wiki but it is kinda confusing.

    EDIT: Think I may have figured it out. trying it
     
  4. Offline

    Tirelessly

    I dont get why you would do that, just add them to a list.
     
  5. Offline

    TheSmallBones

    How would he have "TheSmallBones true" in a list...? -.-
     
  6. Offline

    libraryaddict

    He might mean that if its in the list then its true, Else its false
     
  7. Offline

    TheSmallBones

    That actually seems betters :) My mistake, carry on.
     
Thread Status:
Not open for further replies.

Share This Page