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
ConstructorsConstructorDescriptionNicknameCache(DBSystem dbSystem, ServerInfo serverInfo, ErrorLogger errorLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Performs disable actions for the subsystemvoidenable()Performs enable actions for the subsystem.getDisplayName(UUID uuid) Used to get the player display name in the cache.voidremoveDisplayName(UUID uuid)
-
Constructor Details
-
NicknameCache
-
-
Method Details
-
enable
public void enable()Description copied from interface:SubSystemPerforms enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystemPerforms 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.
-