Class SwearModule
java.lang.Object
net.flectone.pulse.module.message.format.moderation.swear.SwearModule
- All Implemented Interfaces:
ModuleLocalization<Localization.Message.Format.Moderation.Swear>, ModuleSimple
public class SwearModule
extends Object
implements ModuleLocalization<Localization.Message.Format.Moderation.Swear>
-
Constructor Summary
ConstructorsConstructorDescriptionSwearModule(com.google.common.cache.Cache<String, String> messageCache, FileFacade fileFacade, FLogger fLogger, ListenerRegistry listenerRegistry, PermissionChecker permissionChecker, MessagePipeline messagePipeline, ModuleController moduleController, ModerationService moderationService, SocialService socialService) -
Method Summary
Modifier and TypeMethodDescriptionaddTag(MessageContext messageContext) config()format(MessageContext messageContext) booleanisRestricted(UUID uuid) localization(FPlayer fPlayer) name()voidvoidonEnable()com.google.common.collect.ImmutableSet.Builder<PermissionSetting> Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
SwearModule
@Inject public SwearModule(com.google.common.cache.Cache<String, String> messageCache, FileFacade fileFacade, FLogger fLogger, ListenerRegistry listenerRegistry, PermissionChecker permissionChecker, MessagePipeline messagePipeline, ModuleController moduleController, ModerationService moderationService, SocialService socialService)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
permissionBuilder
- Specified by:
permissionBuilderin interfaceModuleLocalization<Localization.Message.Format.Moderation.Swear>- Specified by:
permissionBuilderin interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Message.Format.Moderation.Swear>
-
format
-
addTag
-
isRestricted
-
getCombinedPattern
-