Constructor and Description |
---|
NicknameCache(DBSystem dbSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Performs disable actions for the subsystem
|
void |
enable()
Performs enable actions for the subsystem.
|
java.util.Optional<java.lang.String> |
getDisplayName(java.util.UUID uuid)
Used to get the player display name in the cache.
|
void |
removeDisplayName(java.util.UUID uuid) |
@Inject public NicknameCache(DBSystem dbSystem, ServerInfo serverInfo, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void enable()
SubSystem
public void disable()
SubSystem
public void removeDisplayName(java.util.UUID uuid)
public java.util.Optional<java.lang.String> getDisplayName(java.util.UUID uuid)
If not cached, one from the database will be cached.
uuid
- UUID of the player.