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