Package org.bukkit.event.command
Class UnknownCommandEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.command.UnknownCommandEvent
Thrown when a player executes a command that is not defined
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result - 
Constructor Summary
ConstructorsConstructorDescriptionUnknownCommandEvent(@NotNull CommandSender sender, @NotNull String commandLine, @Nullable String message) Deprecated.UnknownCommandEvent(@NotNull CommandSender sender, @NotNull String commandLine, @Nullable Component message)  - 
Method Summary
Modifier and TypeMethodDescriptionGets the command that was sendstatic @NotNull HandlerListDeprecated.Gets the CommandSender or ConsoleCommandSendermessage()Gets message that will be returnedvoidSets message that will be returnedvoidsetMessage(@Nullable String message) Deprecated.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous 
- 
Constructor Details
- 
UnknownCommandEvent
@Deprecated public UnknownCommandEvent(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String commandLine, @Nullable @Nullable String message) Deprecated. - 
UnknownCommandEvent
 
 - 
 - 
Method Details
- 
getSender
Gets the CommandSender or ConsoleCommandSender- Returns:
 - Sender of the command
 
 - 
getCommandLine
Gets the command that was send- Returns:
 - Command sent
 
 - 
getMessage
Deprecated.usemessage()Gets message that will be returned- Returns:
 - Unknown command message
 
 - 
setMessage
Deprecated.Sets message that will be returnedSet to null to avoid any message being sent
- Parameters:
 message- the message to be returned, or null
 - 
message
Gets message that will be returned- Returns:
 - Unknown command message
 
 - 
message
Sets message that will be returnedSet to null to avoid any message being sent
- Parameters:
 message- the message to be returned, or null
 - 
getHandlers
- Specified by:
 getHandlersin classEvent
 - 
getHandlerList
 
 - 
 
message()