Class ReplacementModule
java.lang.Object
net.flectone.pulse.module.message.format.replacement.ReplacementModule
- All Implemented Interfaces:
ModuleLocalization<Localization.Message.Format.Replacement>, ModuleSimple
public class ReplacementModule
extends Object
implements ModuleLocalization<Localization.Message.Format.Replacement>
-
Constructor Summary
ConstructorsConstructorDescriptionReplacementModule(com.google.common.cache.Cache<String, String> messageCache, com.google.common.cache.Cache<String, net.kyori.adventure.text.Component> imageCache, FileFacade fileFacade, ListenerRegistry listenerRegistry, MessagePipeline messagePipeline, PlatformServerAdapter platformServerAdapter, PlatformPlayerAdapter platformPlayerAdapter, SkinService skinService, SocialService socialService, UrlFormatter urlFormatter, PermissionChecker permissionChecker, ModuleController moduleController, ComponentSerializer componentSerializer, FLogger fLogger) -
Method Summary
Modifier and TypeMethodDescriptionaddTags(MessageContext messageContext) config()net.kyori.adventure.text.ComponentcreateImageComponent(String link) format(MessageContext messageContext) 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 ModuleLocalization
cooldown, cooldownOrThrow, localization, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
ReplacementModule
@Inject public ReplacementModule(com.google.common.cache.Cache<String, String> messageCache, com.google.common.cache.Cache<String, net.kyori.adventure.text.Component> imageCache, FileFacade fileFacade, ListenerRegistry listenerRegistry, MessagePipeline messagePipeline, PlatformServerAdapter platformServerAdapter, PlatformPlayerAdapter platformPlayerAdapter, SkinService skinService, SocialService socialService, UrlFormatter urlFormatter, PermissionChecker permissionChecker, ModuleController moduleController, ComponentSerializer componentSerializer, FLogger fLogger)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceModuleSimple
-
permissionBuilder
- Specified by:
permissionBuilderin interfaceModuleLocalization<Localization.Message.Format.Replacement>- Specified by:
permissionBuilderin interfaceModuleSimple
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceModuleSimple
-
name
- Specified by:
namein interfaceModuleSimple
-
config
- Specified by:
configin interfaceModuleSimple
-
permission
- Specified by:
permissionin interfaceModuleSimple
-
localization
- Specified by:
localizationin interfaceModuleLocalization<Localization.Message.Format.Replacement>
-
format
-
addTags
-
createImageComponent
public net.kyori.adventure.text.Component createImageComponent(String link) throws ExecutionException - Throws:
ExecutionException
-