Interface MentionModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Highlights a player's name in chat and notifies them.
-
Method Summary
Modifier and TypeMethodDescriptionaddTags(MessageContext messageContext) Registers the tags that highlight mentioned names.config()The config section this module reads its settings from.format(MessageContext messageContext) Finds the mentioned players and marks them in the message.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidsendMention(FPlayer fPlayer) Notifies a player that they were mentioned.Methods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
config
Message.Format.Mention 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.Mention 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
Finds the mentioned players and marks them in the message.- Parameters:
messageContext- the message being formatted- Returns:
- the formatted context
-
addTags
Registers the tags that highlight mentioned names.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tags added
-
sendMention
Notifies a player that they were mentioned.- Parameters:
fPlayer- the mentioned player
-