Class FileUuidCache
java.lang.Object
me.lucko.luckperms.common.storage.implementation.file.FileUuidCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.luckperms.api.model.PlayerSaveResultaddMapping(UUID uuid, String username) Adds a mapping to the cachevoidlookupUsername(UUID uuid) Gets the most recent username used by a given uuidlookupUuid(String username) Gets the most recent uuid which connected with the given username, or nullvoidremoveMapping(UUID uuid) Removes a mapping from the cachevoid
-
Constructor Details
-
FileUuidCache
public FileUuidCache()
-
-
Method Details
-
addMapping
Adds a mapping to the cache- Parameters:
uuid- the uuid of the playerusername- the username of the player
-
removeMapping
Removes a mapping from the cache- Parameters:
uuid- the uuid of the player to remove
-
lookupUuid
Gets the most recent uuid which connected with the given username, or null- Parameters:
username- the username to lookup with- Returns:
- a uuid, or null
-
lookupUsername
Gets the most recent username used by a given uuid- Parameters:
uuid- the uuid to lookup with- Returns:
- a username, or null
-
load
-
save
-