Interface NewbieModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Keeps players quiet until they have been on the server long enough.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section this module reads its settings from.getModeration(FPlayer fPlayer) The stand-in punishment describing why a newcomer may not speak yet.booleanWhether a player is still too new to speak.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
-
config
Message.Format.Moderation.Newbie 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.Newbie 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
-
isNewBie
Whether a player is still too new to speak.- Parameters:
fPlayer- the player- Returns:
- true if they are held back
-
getModeration
The stand-in punishment describing why a newcomer may not speak yet.- Parameters:
fPlayer- the player- Returns:
- the punishment, or null if they may speak
-