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