Class BanModule
java.lang.Object
net.flectone.pulse.module.command.ban.BanModule
- All Implemented Interfaces:
ModuleCommand<Localization.Command.Ban>, ModuleLocalization<Localization.Command.Ban>, 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
ConstructorsConstructorDescriptionBanModule(FileFacade fileFacade, FPlayerService fPlayerService, PlatformPlayerAdapter platformPlayerAdapter, ModerationService moderationService, ModerationMessageFormatter moderationMessageFormatter, MessagePipeline messagePipeline, ProxySender proxySender, ProxyRegistry proxyRegistry, ListenerRegistry listenerRegistry, CommandParserProvider commandParserProvider, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, SocialService socialService, UnbanModule unbanModule) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()voidvoidkick(@NonNull Moderation ban) localization(FPlayer fPlayer) name()voidvoidonEnable()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
-
BanModule
@Inject public BanModule(FileFacade fileFacade, FPlayerService fPlayerService, PlatformPlayerAdapter platformPlayerAdapter, ModerationService moderationService, ModerationMessageFormatter moderationMessageFormatter, MessagePipeline messagePipeline, ProxySender proxySender, ProxyRegistry proxyRegistry, ListenerRegistry listenerRegistry, CommandParserProvider commandParserProvider, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, SocialService socialService, UnbanModule unbanModule)
-
-
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.Ban>
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleCommand<Localization.Command.Ban>- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Command.Ban>
-
ban
-
kick
-