mamo87 Posted July 16, 2022 Share Posted July 16, 2022 How can i customize hopworld to hop to normal world not to pvp or dangerous world or pvparina Quote Link to comment Share on other sites More sharing options...
zakynaughtyboy Posted August 16, 2022 Share Posted August 16, 2022 On 7/16/2022 at 11:59 PM, mamo87 said: How can i customize hopworld to hop to normal world not to pvp or dangerous world or pvparina What exactly are you trying to do? You can hop to a specific world using; getAPIContext().world().hop(world); If this is not suitable you can create an array of worlds you want to randomly hop to and hop to them by generating a random number based on the size of your worlds array; private int[] worlds = {301, 308, 576}; private void hopWorld(){ Random randomWorld = new Random(); int worldIndex = randomWorld.nextInt(worlds.length - ;int worlds; ifout"Hopping to world: " ; ; else return; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.