Class MuteManager
java.lang.Object
com.gamersafer.minecraft.auth.common.mute.MuteManager
-
Constructor Summary
ConstructorDescriptionMuteManager
(IMuteStorage db, ReportLogManager reportLogManager, IntegrationManager integrationManager) -
Method Summary
Modifier and TypeMethodDescriptionaddMuteEntry
(String organization, @Nullable String uniqueServerId, Date muteTime, @Nullable Date endTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String muterGuildMemberId, UUID muterPlayerUuid, String muterPlayerName, Category category, boolean wasChildInvolved, String message) getMuteEntries
(UserIdentity identity) getMuteEntries
(String guildMemberId) importMutes
(List<MuteEntry> mutes) isUserMuted
(UserIdentity identity) isUserMuted
(String guildMemberId) void
shutdown()
Waits for the background saving task to finish.unmuteUser
(String organization, @Nullable String uniqueServerId, Date unmuteTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String reporterGuildMemberId, UUID reporterPlayerUuid, String reporterPlayerName, String message)
-
Constructor Details
-
MuteManager
public MuteManager(IMuteStorage db, ReportLogManager reportLogManager, IntegrationManager integrationManager)
-
-
Method Details
-
isUserMuted
-
addMuteEntry
public CompletableFuture<MuteEntry> addMuteEntry(String organization, @Nullable String uniqueServerId, Date muteTime, @Nullable Date endTime, @Nullable String guildMemberId, UUID playerUuid, String playerName, @Nullable String muterGuildMemberId, UUID muterPlayerUuid, String muterPlayerName, Category category, boolean wasChildInvolved, String message) -
unmuteUser
-
getMuteEntries
-
shutdown
public void shutdown()Waits for the background saving task to finish. -
importMutes
-