- Thread Author
- #1
I am creating a world hopper where I scout for other PK'ers. I am querying new players, and see if the result isEmpty or not. Then I'll hop to another world. Here comes the problem. Hopping sometimes takes a few seconds (in extreme cases 10 seconds). After hopping, the Worls.getCurrent(); returns the new world, but the UI hasn't updated yet showing us the players the bot saw before. I am wondering how to wait for the execution to finish.
I was thinking about Execution.delayUntil however this doesn't seem to work.
I was thinking about Execution.delayUntil however this doesn't seem to work.
Code:
Execution.delaysUntil(() -> WorldHop.hopToRandom(true));