public class NickRejectedEvent extends ServerMessageEventBase
Constructor and Description |
---|
NickRejectedEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull String attemptedNick,
@NonNull String newNick)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull String |
getAttemptedNick()
Gets the nickname which was attempted.
|
@NonNull String |
getNewNick()
Gets the new nickname to attempt, by default this is the previously
attempted name (
getAttemptedNick() ) with a ` appended. |
void |
setNewNick(@NonNull String newNick)
Sets the new nickname to attempt.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTag, getTag, getTags
getClient
public NickRejectedEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull String attemptedNick, @NonNull String newNick)
client
- the clientsourceMessage
- source messageattemptedNick
- the nick that failednewNick
- the new nick to attemptpublic @NonNull String getAttemptedNick()
public @NonNull String getNewNick()
getAttemptedNick()
) with a ` appended.public void setNewNick(@NonNull String newNick)
newNick
- a new nicknameIllegalArgumentException
- if nickname is null, is same as the
nickname this events reports has failed, contains invalid characters,
or contains spacesprotected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ServerMessageEventBase
Copyright © 2013–2019 Kitteh. All rights reserved.