Interface CapsModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Blocks messages written mostly in capitals.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section this module reads its settings from.format(MessageContext messageContext) Checks the message for excessive capitals and records a violation if it breaks the rule.booleanisRestricted(UUID uuid) Whether this player has broken the rule often enough to be punished for it.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
-
Method Details
-
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
-
config
Message.Format.Moderation.Caps 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.Moderation.Caps permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
format
Checks the message for excessive capitals and records a violation if it breaks the rule.- Parameters:
messageContext- the message being formatted- Returns:
- the formatted context
-
isRestricted
Whether this player has broken the rule often enough to be punished for it.- Parameters:
uuid- the player- Returns:
- true if the violation limit has been reached
-