Interface TellModule
- All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleCommand, ModuleLocalization, ModuleSimple
The /tell command, which sends a private message.
-
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.@Nullable StringgetReceiverFor(FPlayer fPlayer) localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidremoveReceiver(FPlayer fPlayer) Forgets who a player last wrote to.voidsaveReceiver(UUID player, String receiver) Remembers who a player last wrote to, so /reply knows where to go.voidsend(FEntity sender, FPlayer target, FPlayer fReceiver, Function<Localization.Command.Tell, String> format, String string, UUID metadataUUID) voidSends a private message.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.Tell 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.Tell 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
-
send
-
saveReceiver
-
removeReceiver
Forgets who a player last wrote to.- Parameters:
fPlayer- the sender
-
getReceiverFor
-