Class NicknameCache
java.lang.Object
com.djrapitops.plan.gathering.cache.NicknameCache
- All Implemented Interfaces:
SubSystem
Used for caching nicknames when the player is online.
-
Constructor Summary
ConstructorDescriptionNicknameCache(DBSystem dbSystem, ServerInfo serverInfo, ErrorLogger errorLogger)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.getDisplayName(UUID uuid)
Used to get the player display name in the cache.void
removeDisplayName(UUID uuid)
-
Constructor Details
-
NicknameCache
-
-
Method Details
-
enable
public void enable()Description copied from interface:SubSystem
Performs enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystem
Performs disable actions for the subsystem -
removeDisplayName
-
getDisplayName
Used to get the player display name in the cache.If not cached, one from the database will be cached.
- Parameters:
uuid
- UUID of the player.- Returns:
- latest displayName or null if none are saved.
-