public class UserModeCommand extends Command
| Constructor and Description |
|---|
UserModeCommand(Client client)
Constructs a MODE command for a given user.
|
| Modifier and Type | Method and Description |
|---|---|
UserModeCommand |
add(boolean add,
UserMode mode)
Adds a mode change without a parameter.
|
UserModeCommand |
add(boolean add,
UserMode mode,
String parameter)
Adds a mode change.
|
void |
execute()
Executes the command.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
public UserModeCommand(@Nonnull Client client)
client - the client on which this command is executingIllegalArgumentException - if null parameters@Nonnull public UserModeCommand add(boolean add, @Nonnull UserMode mode)
add - true if adding, false if removingmode - the mode to be changedIllegalArgumentException - if mode invalid@Nonnull public UserModeCommand add(boolean add, @Nonnull UserMode mode, @Nonnull String parameter)
add - true if adding, false if removingmode - the mode to be changedparameter - mode parameterIllegalArgumentException - if mode invalid comes from a
different client or parameter is nullpublic void execute()
Command@Nonnull protected ToStringer toStringer()
CommandToStringer for the command.toStringer in class CommandCopyright © 2013–2019 Kitteh. All rights reserved.