Interface TranslateModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Lets a reader translate someone else's message by clicking it.
-
Method Summary
Modifier and TypeMethodDescriptionaddTag(StringMessageContext messageContext) Registers the tag that draws the translate button.config()The config section this module reads its settings from.@Nullable StringgetMessage(String stringUUID) The stored text behind a translate button.@Nullable StringgetMessage(UUID uuid) The stored text behind a translate button.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.saveMessage(String message) Stores a message so a reader can translate it later by clicking.Methods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
config
Message.Format.Translate config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Message.Format.Translate permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
localization
Description copied from interface:ModuleLocalizationThe localization section for a player, picked from their chosen language.- Specified by:
localizationin interfaceModuleLocalization- Parameters:
fPlayer- the player the text is for- Returns:
- the localization settings
-
saveMessage
-
addTag
Registers the tag that draws the translate button.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tag added
-
getMessage
-
getMessage
-