Class ChatsettingModule
java.lang.Object
net.flectone.pulse.module.command.chatsetting.ChatsettingModule
- All Implemented Interfaces:
ModuleCommand<Localization.Command.Chatsetting>, ModuleLocalization<Localization.Command.Chatsetting>, ModuleSimple, org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>
public abstract class ChatsettingModule
extends Object
implements ModuleCommand<Localization.Command.Chatsetting>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
org.incendo.cloud.execution.CommandExecutionHandler.FutureCommandExecutionHandler<C> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChatsettingModule(FileFacade fileFacade, FPlayerService fPlayerService, SocialService socialService, PermissionChecker permissionChecker, CommandParserProvider commandParserProvider, ProxySender proxySender, ProxyRegistry proxyRegistry, SoundPlayer soundPlayer, TaskScheduler taskScheduler, ModuleController moduleController, ModuleCommandController commandModuleController, ListenerRegistry listenerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionconfig()voidgetCheckboxLore(FPlayer fPlayer, boolean enabled) getCheckboxMaterial(boolean enabled) getCheckboxTitle(FPlayer fPlayer, String setting, boolean enabled) protected abstract MenuBuildergetPlayerChat(FPlayer fTarget) localization(FPlayer fPlayer) name()voidvoidonEnable()com.google.common.collect.ImmutableSet.Builder<PermissionSetting> voidsaveSetting(FPlayer fPlayer, String messageType, boolean value) voidsaveSetting(FPlayer fPlayer, SettingText settingText, String value) 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
-
ChatsettingModule
protected ChatsettingModule(FileFacade fileFacade, FPlayerService fPlayerService, SocialService socialService, PermissionChecker permissionChecker, CommandParserProvider commandParserProvider, ProxySender proxySender, ProxyRegistry proxyRegistry, SoundPlayer soundPlayer, TaskScheduler taskScheduler, ModuleController moduleController, ModuleCommandController commandModuleController, ListenerRegistry listenerRegistry)
-
-
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.Chatsetting>- Specified by:
permissionBuilderin interfaceModuleSimple
-
execute
public void execute(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) - Specified by:
executein interfaceModuleCommand<Localization.Command.Chatsetting>
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleCommand<Localization.Command.Chatsetting>- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Command.Chatsetting>
-
getMenuBuilder
-
saveSetting
-
saveSetting
-
getPlayerChat
-
getCheckboxMaterial
-
getCheckboxTitle
-
getCheckboxLore
-