Interface VanillaModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Re-renders the server's own messages so they follow the plugin's formatting.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.minimessage.tag.resolver.TagResolverargumentTag(FPlayer fResolver, ParsedComponent parsedComponent) Registers the tag that renders the arguments of a vanilla message.config()The config section this module reads its settings from.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
-
Field Details
-
ARGUMENT
The tag prefix under which each vanilla message argument is exposed.- See Also:
-
-
Method Details
-
config
Message.Vanilla config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Message.Vanilla 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
-
argumentTag
net.kyori.adventure.text.minimessage.tag.resolver.TagResolver argumentTag(FPlayer fResolver, ParsedComponent parsedComponent) Registers the tag that renders the arguments of a vanilla message.- Parameters:
fResolver- the readerparsedComponent- the parsed vanilla message- Returns:
- the resolver
-