public class UnknownCommandEvent extends Event
Event.Result
Constructor | Description |
---|---|
UnknownCommandEvent(CommandSender sender,
java.lang.String commandLine,
java.lang.String message) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCommandLine() |
Gets the command that was send
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
java.lang.String |
getMessage() |
Gets message that will be returned
|
CommandSender |
getSender() |
Gets the CommandSender or ConsoleCommandSender
|
void |
setMessage(java.lang.String message) |
Sets message that will be returned
|
callEvent, getEventName, isAsynchronous
public UnknownCommandEvent(CommandSender sender, java.lang.String commandLine, java.lang.String message)
public CommandSender getSender()
public java.lang.String getCommandLine()
@Nullable public java.lang.String getMessage()
public void setMessage(java.lang.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 © 2018. All rights reserved.