Class TranslateModule
java.lang.Object
net.flectone.pulse.module.message.format.translate.TranslateModule
- All Implemented Interfaces:
ModuleLocalization<Localization.Message.Format.Translate>, ModuleSimple
public class TranslateModule
extends Object
implements ModuleLocalization<Localization.Message.Format.Translate>
-
Constructor Summary
ConstructorsConstructorDescriptionTranslateModule(com.google.common.cache.Cache<String, UUID> messageCache, FileFacade fileFacade, ListenerRegistry listenerRegistry, MessagePipeline messagePipeline, ModuleController moduleController, UUIDParser uuidParser, SocialService socialService) -
Method Summary
Modifier and TypeMethodDescriptionaddTag(MessageContext messageContext) config()@Nullable StringgetMessage(String stringUUID) @Nullable StringgetMessage(UUID uuid) localization(FPlayer fPlayer) name()voidvoidonEnable()saveMessage(String message) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, localization, permissionBuilder, sound, soundOrThrowMethods inherited from interface ModuleSimple
childrenBuilder, disablePredicate
-
Constructor Details
-
TranslateModule
@Inject public TranslateModule(com.google.common.cache.Cache<String, UUID> messageCache, FileFacade fileFacade, ListenerRegistry listenerRegistry, MessagePipeline messagePipeline, ModuleController moduleController, UUIDParser uuidParser, SocialService socialService)
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein 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.Translate>
-
saveMessage
-
addTag
-
getMessage
-
getMessage
-