Constructor and Description |
---|
SessionCache(Plan plugin)
Class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cacheSession(UUID uuid,
Session session) |
void |
endSession(UUID uuid,
long time) |
Map<UUID,Session> |
getActiveSessions()
Used to get the Map of active sessions.
|
Optional<Session> |
getCachedSession(UUID uuid)
Used to get the Session of the player in the sessionCache.
|
void |
refreshActiveSessionsState() |
protected final Plan plugin
public SessionCache(Plan plugin)
public void endSession(UUID uuid, long time)
public void refreshActiveSessionsState()
public Optional<Session> getCachedSession(UUID uuid)
uuid
- UUID of the player.Copyright © 2017. All rights reserved.