I've been trying to make a world hopper with a timer that i can use for buying items or mining. I have been using hashmaps to keep the world and system time but my problem is that as of right now i can't seem seem to find a way to instantly return a world once it goes over "X" amount of time, the only method i have checks if the key i give it is in the hashmap and then checks to see if its been longer than "X" amount of time. generating the worlds using a RNG means if it doesn't generate the world then it never revisits it or at least not soon enough to buy when items re-spawn.
Does anyone have an ideas to another method of storing keys and values together that would let me check by value and return a key, or a work around for the hashmap.
//postie