Class ModerationService
java.lang.Object
net.flectone.pulse.service.ModerationService
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModerationService(ModerationRepository moderationRepository, FileFacade fileFacade, ProxySender proxySender, PlatformPlayerAdapter platformPlayerAdapter) -
Method Summary
Modifier and TypeMethodDescription@Nullable Moderationadd(FPlayer fPlayer, long date, long time, String reason, int moderator, Moderation.Type type, @Nullable String server) @Nullable Moderationadd(FPlayer fPlayer, long time, String reason, int moderator, Moderation.Type type) voidaddViolation(UUID uuid, ModuleSimple moduleSimple, ViolationSetting violationSetting) voidaddViolation(ModerationService.ViolationKey violationKey, Long violationValue) @Nullable ModerationgetFirstViolationTimestamp(UUID uuid, ModuleSimple moduleSimple) getServer(Moderation.Type type) intgetTotalValidCount(FPlayer fPlayer, Moderation.Type type, @Nullable String server) intgetTotalValidCount(Moderation.Type type, @Nullable String server) getValid(FPlayer fPlayer, Moderation.Type type) getValid(FPlayer fPlayer, Moderation.Type type, int limit, int offset) getValid(Moderation.Type type, int id) getValid(Moderation.Type type, int limit, int offset) getValidNames(Moderation.Type type) booleanhasHigherGroupThan(FPlayer source, FPlayer target) booleanhasValid(FPlayer fTarget, Moderation.Type type) booleanhasValid(FPlayer fTarget, Moderation.Type type, int id) voidvoidinvalidate(UUID uuid) voidinvalidate(UUID uuid, Moderation.Type type) voidinvalidate(FPlayer fTarget, Moderation.Type type, int id) voidinvalidate(FPlayer fTarget, Moderation.Type type, int id, @Nullable String server) booleanisAllowedTime(FPlayer fPlayer, long time, Map<Integer, Long> timeLimits) booleanisViolationRestricted(UUID uuid, ModuleSimple moduleSimple, ViolationSetting violationSetting) @Nullable Moderation@Nullable Moderationmaintenance(FPlayer fPlayer, long time, String reason, int moderator) @Nullable Moderation@Nullable Moderationremove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, int id, @Nullable String reason) @Nullable Moderationremove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, int id, @Nullable String reason, @Nullable String server) @Nullable Moderationremove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, long time, int id, @Nullable String reason) @Nullable Moderationremove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, long time, int id, @Nullable String reason, @Nullable String server) @Nullable Moderation@Nullable Moderation
-
Constructor Details
-
ModerationService
@Inject public ModerationService(ModerationRepository moderationRepository, FileFacade fileFacade, ProxySender proxySender, PlatformPlayerAdapter platformPlayerAdapter)
-
-
Method Details
-
invalidate
public void invalidate() -
invalidate
-
invalidate
-
invalidate
-
invalidate
-
ban
-
mute
-
maintenance
-
warn
-
kick
-
whitelist
-
hasValid
-
hasValid
-
getValid
-
getValid
-
getValid
-
getValid
-
getValidNames
-
getTotalValidCount
-
getTotalValidCount
-
add
public @Nullable Moderation add(FPlayer fPlayer, long time, String reason, int moderator, Moderation.Type type) -
add
public @Nullable Moderation add(FPlayer fPlayer, long date, long time, String reason, int moderator, Moderation.Type type, @Nullable String server) -
addViolation
-
addViolation
-
isViolationRestricted
public boolean isViolationRestricted(UUID uuid, ModuleSimple moduleSimple, ViolationSetting violationSetting) -
getFirstViolationTimestamp
-
remove
public @Nullable Moderation remove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, int id, @Nullable String reason) -
remove
public @Nullable Moderation remove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, int id, @Nullable String reason, @Nullable String server) -
remove
public @Nullable Moderation remove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, long time, int id, @Nullable String reason) -
remove
public @Nullable Moderation remove(FPlayer fModerator, FPlayer fTarget, Moderation.Type type, long time, int id, @Nullable String reason, @Nullable String server) -
isAllowedTime
-
hasHigherGroupThan
-
getServer
-