Interface BubbleModule
- All Superinterfaces:
ModuleSimple
Shows chat messages as floating text above the speaker's head.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumHow a bubble turns to face the viewer. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@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.voidShows a bubble above a player's head.config()The config section this module reads its settings from.The permission that gates this module.Methods inherited from interface ModuleSimple
children, isDisable, name, onDisable, onEnable, permissions
-
Method Details
-
config
Message.Bubble config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Message.Bubble permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
add
-
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 speakerrawString- the text as typedinputString- the formatted textreceivers- who should see it
-