luminlumin 1 Share Posted November 6, 2017 Am I doing it right? I'm trying to switch to a random world that doesn't give dialogues upon switching like pvp or kots worlds.. World randWorld = getWorlds().getRandomWorld(); if (randWorld.isHighRisk() || randWorld.isPVP()) { randWorld = getWorlds().getRandomWorld(); } getWorldHopper().hopWorld(randWorld); Link to comment Share on other sites More sharing options...
Hashtag 8688 Share Posted November 6, 2017 You can filter worlds. getWorlds().hopWorld(getWorlds().getRandomWorld(w -> w != null && !w.isPvp && !w.isHighRisk ...)); Link to comment Share on other sites More sharing options...
luminlumin 1 Author Share Posted November 6, 2017 You can filter worlds. getWorlds().hopWorld(getWorlds().getRandomWorld(w -> w != null && !w.isPvp && !w.isHighRisk ...)); Thanks! Link to comment Share on other sites More sharing options...
Ahmet82 62 Share Posted November 6, 2017 Hashtag always helping so fast kek Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.