public class UnknownCommandEvent extends Event
Event.Result
Constructor and Description |
---|
UnknownCommandEvent(@NotNull CommandSender sender,
@NotNull String commandLine,
@Nullable net.kyori.adventure.text.Component message) |
UnknownCommandEvent(@NotNull CommandSender sender,
@NotNull String commandLine,
@Nullable String message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
@NotNull String |
getCommandLine()
Gets the command that was send
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable String |
getMessage()
Deprecated.
use
message() |
@NotNull CommandSender |
getSender()
Gets the CommandSender or ConsoleCommandSender
|
@Nullable net.kyori.adventure.text.Component |
message()
Gets message that will be returned
|
void |
message(@Nullable net.kyori.adventure.text.Component message)
Sets message that will be returned
|
void |
setMessage(@Nullable String message)
Deprecated.
|
callEvent, getEventName, isAsynchronous
@Deprecated public UnknownCommandEvent(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String commandLine, @Nullable @Nullable String message)
@NotNull public @NotNull CommandSender getSender()
@NotNull public @NotNull String getCommandLine()
@Nullable @Deprecated public @Nullable String getMessage()
message()
@Deprecated public void setMessage(@Nullable @Nullable String message)
message(Component)
Set to null to avoid any message being sent
message
- the message to be returned, or null@Nullable public @Nullable net.kyori.adventure.text.Component message()
public void message(@Nullable @Nullable net.kyori.adventure.text.Component message)
Set to null to avoid any message being sent
message
- the message to be returned, or null@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.