Swisher Sweet 0 Share Posted December 24, 2023 But what about filtering Leagues? (I don't want it to choose those worlds. ) Ill update this after and thank you to whoever responds. Hopping to a specific world If you know the world you'd already like to hop to: WorldHopper.hopWorld(301); // Replace 301 with the world you'd like to hop to Hopping to a random world You can hop to a completely random world that includes F2P, P2P, PVP, etc: WorldHopper.hopWorld(Worlds.getRandomWorld()); You can also apply filters to getting a random world, for example to hop to a F2P, no level requirement, no PVP world: World world = Worlds.getRandomWorld(w -> w.isF2P() && !w.isPVP() && w.getMinimumLevel() == 0); WorldHopper.hopWorld(world); Link to comment Share on other sites More sharing options...
Swisher Sweet 0 Author Share Posted January 1 @Hashtag Link to comment Share on other sites More sharing options...
MaximusPrimo 59 Share Posted January 1 (edited) I've not tested but I'm pretty sure there is #isLeaguesWorld. There is also #isNormal to filter all the special worlds Edited January 1 by MaximusPrimo Swisher Sweet 1 Link to comment Share on other sites More sharing options...
Swisher Sweet 0 Author Share Posted January 1 Your awesome Thank you! Link to comment Share on other sites More sharing options...
PorkyPie 3 Share Posted January 5 The best thing you can do to get the quickest response without waiting is to check the JavaDoc. Understanding how to use and read it is super powerful. For example a simple search of “WorldType” and “World.” returns all the world types that they can be and the different functions associated with them. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now