AuthMe get the alts of a player

Discussion in 'Spigot Plugin Development' started by Snowmite, Jun 25, 2016.

  1. So when a player joins, AuthMe sends all the staff a message saying "This player has 2 alts", I wanted to know how you would get the alts of a player.

    Screenshot of the message:

  2. It remembers the IPs of users and matches them, fairly simple. It is somewhat complicated to do this efficiently, though.
  3. How would you get it though? There is no getAlts(), so could you tell me how?
  4. It's a implementation by Authme itself. Authme remembers logins/IPs and matches them.
  5. It most likely saves the IPs of the players to a file or database, and then gets all players with the same IP. In this case, the two accounts in the screenshots both have the same IP, therefore matching/associating the two.