Interface QuestionAnswerModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Answers recognized questions in chat automatically.
-
Method Summary
Modifier and TypeMethodDescriptionaddTag(MessageContext messageContext) Registers the tag that renders the matched question.config()The config section this module reads its settings from.format(MessageContext messageContext) Looks for a recognised question and queues the automatic reply.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.Methods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
config
Message.Format.QuestionAnswer 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.QuestionAnswer 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
-
format
Looks for a recognised question and queues the automatic reply.- Parameters:
messageContext- the message being formatted- Returns:
- the formatted context
-
addTag
Registers the tag that renders the matched question.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tag added
-