Interface VanillaModule

All Superinterfaces:
ModuleLocalization, ModuleSimple

public interface VanillaModule extends ModuleLocalization
Re-renders the server's own messages so they follow the plugin's formatting.
  • Field Details

    • ARGUMENT

      static final String ARGUMENT
      The tag prefix under which each vanilla message argument is exposed.
      See Also:
  • Method Details

    • config

      Message.Vanilla config()
      Description copied from interface: ModuleSimple
      The config section this module reads its settings from.
      Specified by:
      config in interface ModuleSimple
      Returns:
      the settings
    • permission

      Description copied from interface: ModuleSimple
      The permission that gates this module.
      Specified by:
      permission in interface ModuleSimple
      Returns:
      the permission
    • localization

      Localization.Message.Vanilla localization(FPlayer fPlayer)
      Description copied from interface: ModuleLocalization
      The localization section for a player, picked from their chosen language.
      Specified by:
      localization in interface ModuleLocalization
      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 reader
      parsedComponent - the parsed vanilla message
      Returns:
      the resolver