Command Progression Memeroy

Discussion in 'Plugin Development' started by Drofzz, Jan 20, 2012.

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


    hey everybody
    so i really havnt been working alot on game plugins before, with all thouse factors i have to think of, when making my Membery variables.

    now i have this situation where i need to type a command, and thereafter select an item, the command should be executed on.. that mean i have to hold the Command in the Memory as a stage for the individual player.

    i was wondering if the Bukkit Framework had this type of memory to use?

    i am not really that good with this kind of stuff, but i was thinking if there wasnt, i had to make an Array with all the players, and what stage they where on (but that seems like the wrong way to do, and i really want to learn a simple and failsafe way) :)
  2. Offline


    you may want to do a hashmap which stores the player and selected item, and then when the player executes the next command it will remove them from the hashmap, however I may be misunderstanding what you want to do.
  3. Offline


    hmm no you did not misunderstand, this seems like the way i wanted it :)
Thread Status:
Not open for further replies.

Share This Page