public class OperCommand extends Command<OperCommand>
Command.Tags| Constructor and Description |
|---|
OperCommand(@NonNull Client client)
Constructs the command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the command.
|
@NonNull OperCommand |
password(@NonNull String password)
Sets the password for the command.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
@NonNull OperCommand |
user(@NonNull String user)
Sets user for the command.
|
getClient, sendCommandLine, sendCommandLine, tags, toStringpublic OperCommand(@NonNull Client client)
client - the clientIllegalArgumentException - if client is nullpublic @NonNull OperCommand user(@NonNull String user)
user - target nickIllegalArgumentException - for invalid targetpublic @NonNull OperCommand password(@NonNull String password)
password - password for the userpublic void execute()
Commandexecute in class Command<OperCommand>protected @NonNull ToStringer toStringer()
CommandToStringer for the command.toStringer in class Command<OperCommand>Copyright © 2013–2021 Kitteh. All rights reserved.