public interface CommandActor
| Modifier and Type | Method and Description |
|---|---|
default void |
error(@NotNull java.lang.String message)
Replies to the sender with the specified message, and marks it as
an error depending on the platform.
|
Lamp<?> |
lamp()
Returns the
Lamp instance that constructed this actor. |
@NotNull java.lang.String |
name()
Returns the name of this actor.
|
default void |
reply(@NotNull java.lang.String message)
Replies to the sender with the specified message.
|
void |
sendRawError(@NotNull java.lang.String message)
Sends an error message to the sender.
|
void |
sendRawMessage(@NotNull java.lang.String message)
Sends a message to the sender.
|
@NotNull java.util.UUID |
uniqueId()
Returns the unique UID of this subject.
|
@NotNull @NotNull java.lang.String name()
@NotNull @NotNull java.util.UUID uniqueId()
Although some platforms explicitly have their underlying senders have UUIDs, some platforms may have to generate this UUID based on other available data.
default void reply(@NotNull
@NotNull java.lang.String message)
If the Lamp instance provides a custom Lamp.messageSender(),
it will be used, otherwise this will fall back to the normal sender.
Varies depending on the platform.
message - Message to reply with.void sendRawMessage(@NotNull
@NotNull java.lang.String message)
message - Message to senddefault void error(@NotNull
@NotNull java.lang.String message)
If the Lamp instance provides a custom Lamp.errorSender(),
it will be used, otherwise this will fall back to the normal sender.
Note that, in certain platforms where no "error" mode is available,
this may effectively be equivalent to calling reply(String).
This method should not throw any exceptions.
message - Message to reply withvoid sendRawError(@NotNull
@NotNull java.lang.String message)
message - Error message to send