// ----------------------------------------------------------------------------------- // getGroupIndex // The returns the index in the group array of the player // ----------------------------------------------------------------------------------- public int getGroupIndex(Player player) { int index = -1; if (playerGroupType == GroupType.Party) { index = groupNames.IndexOf(player.party.party.members[0]); } else if (playerGroupType == GroupType.Guild) { index = groupNames.IndexOf(player.guild.name); } return(index); }