cache playername on login
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user