For the discord "unique players joined" the plugin count all files in payerdata. but on a modpackserver the mods itself make own files from each player. on my server are 3 players joined. but discordsrv says 13.
you must only count the .dat files from minecraft itself to work.