Class MuteModule
java.lang.Object
net.flectone.pulse.module.command.mute.MuteModule
- All Implemented Interfaces:
ModuleCommand<Localization.Command.Mute>, ModuleLocalization<Localization.Command.Mute>, ModuleSimple, org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
org.incendo.cloud.execution.CommandExecutionHandler.FutureCommandExecutionHandler<C> -
Constructor Summary
ConstructorsConstructorDescriptionMuteModule(FileFacade fileFacade, FPlayerService fPlayerService, ModerationService moderationService, ModerationMessageFormatter moderationMessageFormatter, CommandParserProvider commandParserProvider, ProxySender proxySender, MuteChecker muteChecker, MessagePipeline messagePipeline, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, ListenerRegistry listenerRegistry, ProxyRegistry proxyRegistry, SocialService socialService) -
Method Summary
Modifier and TypeMethodDescriptionaddTag(MessageContext messageContext) config()voidgetMuteSuffix(FPlayer fPlayer, FPlayer fReceiver) localization(FPlayer fPlayer) name()voidvoidonEnable()voidsendForTarget(FEntity fModerator, FPlayer fReceiver, Moderation mute) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
executeFutureMethods inherited from interface ModuleCommand
executeMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, permissionBuilder, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
MuteModule
@Inject public MuteModule(FileFacade fileFacade, FPlayerService fPlayerService, ModerationService moderationService, ModerationMessageFormatter moderationMessageFormatter, CommandParserProvider commandParserProvider, ProxySender proxySender, MuteChecker muteChecker, MessagePipeline messagePipeline, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, ListenerRegistry listenerRegistry, ProxyRegistry proxyRegistry, SocialService socialService)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
execute
public void execute(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) - Specified by:
executein interfaceModuleCommand<Localization.Command.Mute>
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleCommand<Localization.Command.Mute>- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Command.Mute>
-
addTag
-
getMuteSuffix
-
sendForTarget
-