Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Ability to find a player's world without having them on your friend's list


    Xephy

    Recommended Posts

    @@Pandemic, is there a way to find a player's world based on either being in the same clan chat with, or just knowing the player's name as opposed to having to add them to your friend's list?

    Link to comment
    Share on other sites

    Yes, The clan api "getMembers()" returns

    public java.util.List<ClanMember> getMembers()
    Gets a list of the clan members in your chat
    Returns:
    List of ClanMember, empty List if not in chat
    

    then you can scan the list using the getName()  method and then chaining it to getWorld() 

     

    so example:

    List<ClanMember> tempList = getClanMembers();
    for(int c = 0; c < tempList.size; c++){
    if(tempList.get(c).getName== "name"){
     return tempList.get(c).getName.getWorld();
    }
    } 
    
    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.