kalilistic / PlayerTrack

Keep track of players you meet.
MIT License
15 stars 9 forks source link

GetPlayerNameWorldHistories() IPC #149

Closed wrath16 closed 5 months ago

wrath16 commented 5 months ago

Adds a new IPC function GetUniquePlayerNameWorldHistories() for retrieving the player name/world history for a list of players.

The reason is I want to use this information as an optional feature for my plugin PvP Tracker to persist stats across name/world changes. My plugin is quite recent so I opted to only transmit records that are not migrated where we can be sure of the name+world combo. I've tested the function and verified it works as intended.

wrath16 commented 5 months ago

Changed the function to GetPlayerNameWorldHistories() and moved the data validation across to my plugin so it's less restrictive in case other plugins want to use the function as well.

kalilistic commented 5 months ago

Looks good at a glance. I'll look closer, get it merged and PR'd to DP17 this week. Thanks!