Class EliminatedPlayersCache
java.lang.Object
com.zetaplugins.lifestealz.caches.Cache<String>
com.zetaplugins.lifestealz.caches.EliminatedPlayersCache
-
Constructor Summary
ConstructorsConstructorDescriptionEliminatedPlayersCache(LifeStealZ plugin) A cache for eliminated players to avoid unnecessary database queries on tab completion -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEliminatedPlayer(String username) Add a player to the cacheGet a set of all eliminated playersvoidReload the cache from the databasevoidremoveEliminatedPlayer(String username) Remove a player from the cacheMethods inherited from class com.zetaplugins.lifestealz.caches.Cache
addAllItems, addItem, clearCache, getCachedData, getPlugin, removeItem
-
Constructor Details
-
EliminatedPlayersCache
A cache for eliminated players to avoid unnecessary database queries on tab completion
-
-
Method Details
-
reloadCache
public void reloadCache()Reload the cache from the database- Specified by:
reloadCachein classCache<String>
-
getEliminatedPlayers
Get a set of all eliminated players- Returns:
- A set of all eliminated players
-
addEliminatedPlayer
Add a player to the cache- Parameters:
username- The username of the player to add
-
removeEliminatedPlayer
Remove a player from the cache- Parameters:
username- The username of the player to remove
-