Class MaintenanceModule
java.lang.Object
net.flectone.pulse.module.command.maintenance.MaintenanceModule
- All Implemented Interfaces:
ModuleCommand<Localization.Command.Maintenance>, ModuleLocalization<Localization.Command.Maintenance>, ModuleSimple, org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>
public class MaintenanceModule
extends Object
implements ModuleCommand<Localization.Command.Maintenance>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
org.incendo.cloud.execution.CommandExecutionHandler.FutureCommandExecutionHandler<C> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMaintenanceModule(FileFacade fileFacade, PermissionChecker permissionChecker, ListenerRegistry listenerRegistry, Path iconPath, PlatformServerAdapter platformServerAdapter, PlatformPlayerAdapter platformPlayerAdapter, FPlayerService fPlayerService, MessagePipeline messagePipeline, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, IconConvertor iconUtil, CommandParserProvider commandParserProvider, TaskScheduler taskScheduler, ModerationService moderationService, ProxySender proxySender, ModerationMessageFormatter moderationMessageFormatter, ProxyRegistry proxyRegistry, SocialService socialService) -
Method Summary
Modifier and TypeMethodDescriptionconfig()voidbooleanbooleanvoidkickOnlinePlayers(@NonNull Moderation maintenance) 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 org.incendo.cloud.execution.CommandExecutionHandler
executeFutureMethods inherited from interface ModuleCommand
executeMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Field Details
-
icon
-
-
Constructor Details
-
MaintenanceModule
@Inject public MaintenanceModule(FileFacade fileFacade, PermissionChecker permissionChecker, ListenerRegistry listenerRegistry, Path iconPath, PlatformServerAdapter platformServerAdapter, PlatformPlayerAdapter platformPlayerAdapter, FPlayerService fPlayerService, MessagePipeline messagePipeline, MessageDispatcher messageDispatcher, ModuleController moduleController, ModuleCommandController commandModuleController, IconConvertor iconUtil, CommandParserProvider commandParserProvider, TaskScheduler taskScheduler, ModerationService moderationService, ProxySender proxySender, ModerationMessageFormatter moderationMessageFormatter, ProxyRegistry proxyRegistry, SocialService socialService)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
permissionBuilder
- Specified by:
permissionBuilderin interfaceModuleLocalization<Localization.Command.Maintenance>- Specified by:
permissionBuilderin interfaceModuleSimple
-
execute
public void execute(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) - Specified by:
executein interfaceModuleCommand<Localization.Command.Maintenance>
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleCommand<Localization.Command.Maintenance>- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Command.Maintenance>
-
isAllowed
-
isTurnedOn
public boolean isTurnedOn() -
turn
public Optional<Moderation> turn(FPlayer fPlayer, @Nullable String reason, long time, boolean turned) -
kickOnlinePlayers
-