Jump to content

Hopp2p is hoping to pvp


mamo87

Recommended Posts

  • 5 weeks later...
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;
    

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...