Class RibbitCommand
Object
NormalCommand
RibbitCommand
- All Implemented Interfaces:
Command
The Ribbit Command: "Rrribbit". Makes you go "Rrribbit". It's a punishment
method. It is not allowed to execute this command faster than once every 10
seconds.
- Author:
- maartenl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRuns the command.void
setRibbitTime
(String name, LocalDateTime time) Methods inherited from class NormalCommand
getAdminService, getChatService, getEventsService, getGuildService, getHelpService, getItemService, getLogService, getPersonService, getRegExpr, parseCommand, parseCommand, setCallback
-
Constructor Details
-
RibbitCommand
-
-
Method Details
-
setRibbitTime
-
run
Description copied from interface:Command
Runs the command. The usual sequence of events is:- parsing the command string
- retrieving the appropriate information items/rooms/characters/etc)
- doing the action
- composing a return message for the user.
- Specified by:
run
in interfaceCommand
- Specified by:
run
in classNormalCommand
- Parameters:
command
- the String containing the full command.aUser
- the user that is executing the command- Returns:
- DisplayInterface to display to the user, if it returns null, it means the command was unsuccessfull.
-