Interface SpyModule
- All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleCommand, ModuleLocalization, ModuleSimple
The /spy command, which mirrors other players' chat, commands and book or sign edits to a moderator.
-
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 TypeMethodDescriptionvoidcheckAnvil(@NonNull UUID player, @Nullable String itemName) Reports an anvil rename to the watching moderators.voidReports a book edit to the watching moderators.voidReports a chat message to the moderators who did not already receive it.voidcheckChat(@NonNull FPlayer fPlayer, @NonNull String chat, @NonNull String message, @NonNull Set<FPlayer> receivers) Reports a chat message, naming the chat it was written in.voidcheckCommand(@NonNull UUID player, @Nullable String command) Reports a command to the watching moderators.voidReports a sign edit to the watching moderators.config()The config section for this command, which also holds its aliases.createFilter(FPlayer fPlayer, Set<FPlayer> receivers) Which moderators should receive a report.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidSends one spy report to every watching moderator.voidspy(@NonNull FPlayer fPlayer, @NonNull String action, @NonNull String message, @NonNull Set<FPlayer> receivers) Sends one spy report, skipping moderators who already saw the original.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.Spy 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.Spy 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
-
checkAnvil
-
checkSign
-
checkBook
-
checkCommand
-
checkChat
-
checkChat
-
spy
-
spy
void spy(@NonNull FPlayer fPlayer, @NonNull String action, @NonNull String message, @NonNull Set<FPlayer> receivers) Sends one spy report, skipping moderators who already saw the original.- Parameters:
fPlayer- who was spied onaction- what they didmessage- the text they enteredreceivers- who already saw it
-
createFilter
-