Solved Carrying Temporary Information

Discussion in 'Spigot Plugin Development' started by Azmidium, Dec 25, 2015.

  1. I am making a plugin where in one command stores a string. I go through a couple classes/events and in the final event, I need the information from the command class. How would I keep that information temporarily without using Arrays/Hashmaps?
  2. Configuration. Only other way I could think without arrays and hashmaps. Maybe a database. Lol.
  3. Your best option would be to use a Hashmap, even though you said you didn't want to use them. Any reason why you don't want to use a hash map?
  4. md_5

    Administrator Developer

    Or metadata if you can tie it to a player.
  5. Thanks!
  6. I was just wondering if there would be a way without using HashMaps, I never really not wanted to use them. I <3 HashMaps!
  7. I'll stick with HashMaps, the more simple route probably.