Interface AutoModule
- All Superinterfaces:
ModuleListLocalization, ModuleLocalization, ModuleSimple
Broadcasts the configured messages on a timer.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section this module reads its settings from.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidsend(FPlayer fPlayer, String name, Message.Auto.Type type, Pair<Sound, PermissionSetting> sound) Sends one scheduled broadcast.Methods inherited from interface ModuleListLocalization
getAvailableMessages, getCurrentMessage, getNextMessage, getNextMessage, getPlayerIndexOrDefault, joinMultiList, nextInt, savePlayerIndexMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
config
Message.Auto config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Message.Auto 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
-
send
void send(FPlayer fPlayer, String name, Message.Auto.Type type, Pair<Sound, PermissionSetting> sound) Sends one scheduled broadcast.- Parameters:
fPlayer- the readername- the config entry the message comes fromtype- the broadcast settingssound- the sound and the permission to hear it
-