Xephy 237 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?
Chochu 1 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(); } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.