public class UnknownCommandEvent extends Event
Event.Result
Constructor and Description |
---|
UnknownCommandEvent(CommandSender sender,
String commandLine,
String message) |
Modifier and Type | Method and 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(CommandSender sender, String commandLine, String message)
public CommandSender getSender()
public String getCommandLine()
@Nullable public String getMessage()
public void setMessage(String message)
Set to null to avoid any message being sent
message
- the message to be returned, or nullpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.