- All Implemented Interfaces:
Command
A command for toggling debug mode on and off.
-
Constructor Summary
Constructors
Creates a new debug command.
-
Method Summary
boolean
Toggles debug mode on or off if the corresponding argument is received.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DebugCommand
public DebugCommand()
Creates a new debug command.
-
Method Details
-
action
Toggles debug mode on or off if the corresponding argument is received.
- Specified by:
action
in interface Command
- Parameters:
args
- command arguments
- Returns:
- command was successful