Package org.strassburger.lifestealz.util
Class EliminatedPlayersCache
java.lang.Object
org.strassburger.lifestealz.util.EliminatedPlayersCache
-
Constructor Summary
ConstructorDescriptionEliminatedPlayersCache
(LifeStealZ plugin) A cache for eliminated players to avoid unnecessary database queries on tab completion -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEliminatedPlayer
(String username) Add a player to the cacheGet a set of all eliminated playersvoid
Reload the cache from the databasevoid
removeEliminatedPlayer
(String username) Remove a player from the cache
-
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 -
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
-