Interface BubbleModule

All Superinterfaces:
ModuleSimple

public interface BubbleModule extends ModuleSimple
Shows chat messages as floating text above the speaker's head.
  • Method Details

    • config

      Message.Bubble 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
    • add

      void add(@NonNull FPlayer fPlayer, @NonNull String inputString, Set<FPlayer> receivers)
      Shows a bubble above a player's head.
      Parameters:
      fPlayer - the speaker
      inputString - the text
      receivers - who should see it
    • add

      void add(@NonNull FPlayer fPlayer, @NonNull String rawString, @NonNull String inputString, Set<FPlayer> receivers)
      Shows a bubble, keeping the raw text separate from the formatted one so the length limit is measured on what the player actually typed.
      Parameters:
      fPlayer - the speaker
      rawString - the text as typed
      inputString - the formatted text
      receivers - who should see it