Class WhitelistModule
java.lang.Object
net.flectone.pulse.module.command.whitelist.WhitelistModule
- All Implemented Interfaces:
ModuleCommand<Localization.Command.Whitelist>, ModuleLocalization<Localization.Command.Whitelist>, ModuleSimple, org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>
public class WhitelistModule
extends Object
implements ModuleCommand<Localization.Command.Whitelist>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
org.incendo.cloud.execution.CommandExecutionHandler.FutureCommandExecutionHandler<C> -
Constructor Summary
ConstructorsConstructorDescriptionWhitelistModule(FileFacade fileFacade, ModuleController moduleController, CommandParserProvider commandParserProvider, ModuleCommandController commandModuleController, MessageDispatcher messageDispatcher, FPlayerService fPlayerService, PlatformServerAdapter platformServerAdapter, PlatformPlayerAdapter platformPlayerAdapter, PermissionChecker permissionChecker, ModerationService moderationService, ListenerRegistry listenerRegistry, ModerationMessageFormatter moderationMessageFormatter, ModerationListSender moderationListSender, ProfileResolver profileResolver, TaskScheduler taskScheduler, MessagePipeline messagePipeline, ProxySender proxySender, UUIDParser uuidParser, com.google.gson.Gson gson, FLogger fLogger, ProxyRegistry proxyRegistry, SocialService socialService, ValidNameChecker validNameChecker) -
Method Summary
Modifier and TypeMethodDescription@Nullable Moderationconfig()voidbooleanbooleanisWhitelisted(FPlayer fPlayer) voidkickOnlinePlayers(@NonNull Moderation moderation) voidkickPlayer(FEntity fModerator, FPlayer fTarget) 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
-
Constructor Details
-
WhitelistModule
@Inject public WhitelistModule(FileFacade fileFacade, ModuleController moduleController, CommandParserProvider commandParserProvider, ModuleCommandController commandModuleController, MessageDispatcher messageDispatcher, FPlayerService fPlayerService, PlatformServerAdapter platformServerAdapter, PlatformPlayerAdapter platformPlayerAdapter, PermissionChecker permissionChecker, ModerationService moderationService, ListenerRegistry listenerRegistry, ModerationMessageFormatter moderationMessageFormatter, ModerationListSender moderationListSender, ProfileResolver profileResolver, TaskScheduler taskScheduler, MessagePipeline messagePipeline, ProxySender proxySender, UUIDParser uuidParser, com.google.gson.Gson gson, FLogger fLogger, ProxyRegistry proxyRegistry, SocialService socialService, ValidNameChecker validNameChecker)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Command.Whitelist>
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleCommand<Localization.Command.Whitelist>- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
permissionBuilder
- Specified by:
permissionBuilderin interfaceModuleLocalization<Localization.Command.Whitelist>- Specified by:
permissionBuilderin interfaceModuleSimple
-
execute
public void execute(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) - Specified by:
executein interfaceModuleCommand<Localization.Command.Whitelist>
-
add
public @Nullable Moderation add(@NonNull FPlayer fModerator, @NonNull FPlayer fTarget, long time, @Nullable String reason) -
isTurnedOn
public boolean isTurnedOn() -
isWhitelisted
-
kickOnlinePlayers
-
kickPlayer
-