Interface RockpaperscissorsModule
- All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleCommand, ModuleLocalization, ModuleSimple
The /rockpaperscissors command, which plays a round against another player.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumHow far a round has got.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.voidInvites a player to a game.voidCloses a game and announces the result.voidRecords the second player's move and announces the winner.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.voidRecords a move.The permission that gates this module.voidremoveGame(UUID uuid) Removes an active game session by the UUID of either the sender or the receiverMethods 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.Rockpaperscissors 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.Rockpaperscissors 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
-
finalMove
-
end
-
move
-
create
-
removeGame
Removes an active game session by the UUID of either the sender or the receiver- Parameters:
uuid- the UUID of the sender or the receiver whose game should be removed
-