Class EliminatedPlayersCache

java.lang.Object
org.strassburger.lifestealz.util.EliminatedPlayersCache

public class EliminatedPlayersCache extends Object
  • Constructor Details

    • EliminatedPlayersCache

      public EliminatedPlayersCache(LifeStealZ plugin)
      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

      public Set<String> getEliminatedPlayers()
      Get a set of all eliminated players
      Returns:
      A set of all eliminated players
    • addEliminatedPlayer

      public void addEliminatedPlayer(String username)
      Add a player to the cache
      Parameters:
      username - The username of the player to add
    • removeEliminatedPlayer

      public void removeEliminatedPlayer(String username)
      Remove a player from the cache
      Parameters:
      username - The username of the player to remove