Class SQLIgnoresRepository

java.lang.Object
com.zetaplugins.essentialz.storage.repositories.Repository
com.zetaplugins.essentialz.storage.repositories.ignores.SQLIgnoresRepository
All Implemented Interfaces:
IgnoresRepository

public class SQLIgnoresRepository extends Repository implements IgnoresRepository
  • Constructor Details

  • Method Details

    • initializeTable

      public void initializeTable()
      Description copied from class: Repository
      Initializes the database table(s) for the repository.
      Specified by:
      initializeTable in class Repository
    • togglePlayerIgnore

      public boolean togglePlayerIgnore(UUID playerUuid, UUID targetUuid)
      Description copied from interface: IgnoresRepository
      Toggles the ignore status of a target player for a specific player.
      Specified by:
      togglePlayerIgnore in interface IgnoresRepository
      Parameters:
      playerUuid - The UUID of the player who is toggling the ignore status.
      targetUuid - The UUID of the target player to be ignored or unignored.
      Returns:
      true if the target player is now ignored, false if unignored.
    • isPlayerIgnoring

      public boolean isPlayerIgnoring(UUID playerUuid, UUID targetUuid)
      Description copied from interface: IgnoresRepository
      Checks if a player is ignoring a target player.
      Specified by:
      isPlayerIgnoring in interface IgnoresRepository
      Parameters:
      playerUuid - The UUID of the player.
      targetUuid - The UUID of the target player.
      Returns:
      true if the player is ignoring the target player, false otherwise.