Xephy 237 Share Posted January 15, 2017 @@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 More sharing options...
Chochu 1 Share Posted January 15, 2017 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.