Class SQLIgnoresRepository
java.lang.Object
com.zetaplugins.essentialz.storage.repositories.Repository
com.zetaplugins.essentialz.storage.repositories.ignores.SQLIgnoresRepository
- All Implemented Interfaces:
IgnoresRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the database table(s) for the repository.booleanisPlayerIgnoring(UUID playerUuid, UUID targetUuid) Checks if a player is ignoring a target player.booleantogglePlayerIgnore(UUID playerUuid, UUID targetUuid) Toggles the ignore status of a target player for a specific player.Methods inherited from class com.zetaplugins.essentialz.storage.repositories.Repository
getConnection, getPlugin
-
Constructor Details
-
SQLIgnoresRepository
-
-
Method Details
-
initializeTable
public void initializeTable()Description copied from class:RepositoryInitializes the database table(s) for the repository.- Specified by:
initializeTablein classRepository
-
togglePlayerIgnore
Description copied from interface:IgnoresRepositoryToggles the ignore status of a target player for a specific player.- Specified by:
togglePlayerIgnorein interfaceIgnoresRepository- 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
Description copied from interface:IgnoresRepositoryChecks if a player is ignoring a target player.- Specified by:
isPlayerIgnoringin interfaceIgnoresRepository- 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.
-