Class WarningManager
java.lang.Object
com.gamersafer.minecraft.auth.common.warn.WarningManager
-
Constructor Summary
ConstructorDescriptionWarningManager
(IWarningStorage db, ReportLogManager reportLogManager, IntegrationManager integrationManager) -
Method Summary
Modifier and TypeMethodDescriptiongetWarnings
(UserIdentity identity) getWarnings
(String guildMemberId) importWarnings
(List<Warning> warns) isUserWarning
(UserIdentity identity) isUserWarning
(String guildMemberId) void
shutdown()
Waits for the background saving task to finish.warnUser
(String organization, @Nullable String uniqueServerId, Date warningTime, @Nullable Date endTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String reporterGuildMemberId, UUID reporterPlayerUuid, String reporterPlayerName, Category category, boolean wasChildInvolved, String message)
-
Constructor Details
-
WarningManager
public WarningManager(IWarningStorage db, ReportLogManager reportLogManager, IntegrationManager integrationManager)
-
-
Method Details
-
isUserWarning
-
warnUser
public CompletableFuture<Warning> warnUser(String organization, @Nullable String uniqueServerId, Date warningTime, @Nullable Date endTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String reporterGuildMemberId, UUID reporterPlayerUuid, String reporterPlayerName, Category category, boolean wasChildInvolved, String message) -
getWarnings
-
shutdown
public void shutdown()Waits for the background saving task to finish. -
importWarnings
-