Added support for UUID-based player lookups in 1.7.5+

You could argue that ShadowRanger's conversion of everything to UUID is better, but that would result in us having to contact Mojang's servers simply to fetch a player by UUID for versions < 1.7.5. It seems excessive (not to mention that uncached contact can result in rate limiting) when the server itself will not remember who they are across name changes. If they can re-obtain everything in their inventory, they can re-run /ac.
This commit is contained in:
Jikoo
2016-11-26 15:31:53 -05:00
parent d7eec528e4
commit 8a6b98614f
21 changed files with 286 additions and 2 deletions

View File

@@ -39,4 +39,12 @@ public interface IPlayerDataManager {
*/
public String getPlayerDataID(OfflinePlayer player);
/**
* Gets an OfflinePlayer by the given unique identifier.
*
* @param identifier the unique identifier
* @return the OfflinePlayer, or null if no exact match was found
*/
public OfflinePlayer getPlayerByID(String identifier);
}