cache playername on login
This commit is contained in:
parent
bbf140b020
commit
dbd0a4f2b9
|
|
@ -2966,6 +2966,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
static void cacheUUIDNamePair(UUID playerID, String playerName)
|
static void cacheUUIDNamePair(UUID playerID, String playerName)
|
||||||
{
|
{
|
||||||
//store the reverse mapping
|
//store the reverse mapping
|
||||||
|
playerNameCache.put(playerID, playerName);
|
||||||
GriefPrevention.instance.playerNameToIDMap.put(playerName, playerID);
|
GriefPrevention.instance.playerNameToIDMap.put(playerName, playerID);
|
||||||
GriefPrevention.instance.playerNameToIDMap.put(playerName.toLowerCase(), playerID);
|
GriefPrevention.instance.playerNameToIDMap.put(playerName.toLowerCase(), playerID);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user