Interface NicknameModule
- All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleCommand, ModuleLocalization, ModuleSimple
The /nickname command, which changes the name a player is shown under.
-
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 TypeMethodDescriptionaddTag(MessageContext messageContext) Registers the tag that renders a player's nickname.voidchangeName(FPlayer fPlayer, FPlayer fTarget, String nickname) Changes a player's nickname and announces it.config()The config section for this command, which also holds its aliases.voidexecuteOther(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext) Runs the form of the command that changes someone else's nickname.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidsendMessageWithUpdatedNickname(FEntity fPlayer, String nickname, UUID metadataUUID) Announces a nickname change.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
-
executeOther
-
config
Command.Nickname 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.Nickname 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
-
changeName
-
sendMessageWithUpdatedNickname
-
addTag
Registers the tag that renders a player's nickname.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tag added
-