cache playername on login

This commit is contained in:
destro174 2022-02-20 14:56:51 +01:00
parent bbf140b020
commit dbd0a4f2b9

View File

@ -2966,6 +2966,7 @@ public class GriefPrevention extends JavaPlugin
static void cacheUUIDNamePair(UUID playerID, String playerName)
{
//store the reverse mapping
playerNameCache.put(playerID, playerName);
GriefPrevention.instance.playerNameToIDMap.put(playerName, playerID);
GriefPrevention.instance.playerNameToIDMap.put(playerName.toLowerCase(), playerID);
}