public class UnknownCommandEvent extends Event
Event.Result
Constructor and Description |
---|
UnknownCommandEvent(@NotNull CommandSender sender,
@NotNull String commandLine,
@Nullable String message) |
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()
Gets message that will be returned
|
@NotNull CommandSender |
getSender()
Gets the CommandSender or ConsoleCommandSender
|
void |
setMessage(@Nullable String message)
Sets message that will be returned
|
callEvent, getEventName, isAsynchronous
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 public @Nullable String getMessage()
public void setMessage(@Nullable @Nullable String 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 © 2022. All rights reserved.