Interface ChatsettingModule
- All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleCommand, ModuleLocalization, ModuleSimple
The /chatsetting command, which opens the menu where a player toggles their personal chat options.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
org.incendo.cloud.execution.CommandExecutionHandler.FutureCommandExecutionHandler<C> -
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section for this command, which also holds its aliases.getCheckboxLore(FPlayer fPlayer, boolean enabled) The hint shown under a menu entry.getCheckboxMaterial(boolean enabled) The item used to draw a checkbox in the menu.getCheckboxTitle(FPlayer fPlayer, String setting, boolean enabled) The title of one menu entry.Returns the menu buildergetPlayerChat(FPlayer fTarget) The chat a player currently writes to.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidsaveSetting(FPlayer fPlayer, String messageType, boolean value) Stores an on/off setting.voidsaveSetting(FPlayer fPlayer, SettingText settingText, String value) Stores a text setting, such as the chosen chat or locale.Methods inherited from interface org.incendo.cloud.execution.CommandExecutionHandler
executeFutureMethods inherited from interface ModuleCommand
execute, executeMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
config
Command.Chatsetting config()Description copied from interface:ModuleCommandThe config section for this command, which also holds its aliases.- Specified by:
configin interfaceModuleCommand- Specified by:
configin interfaceModuleSimple- Returns:
- the command settings
-
permission
Permission.Command.Chatsetting 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
-
saveSetting
-
saveSetting
Stores a text setting, such as the chosen chat or locale.- Parameters:
fPlayer- the playersettingText- which settingvalue- the new value
-
getMenuBuilder
-
getPlayerChat
-
getCheckboxMaterial
The item used to draw a checkbox in the menu.- Parameters:
enabled- whether the option is on- Returns:
- the item id
-
getCheckboxTitle
-
getCheckboxLore
-