Class ParsedCommand
java.lang.Object
net.minestom.server.command.builder.ParsedCommand
Represents a
Command
ready to be executed (already parsed).-
Method Summary
Modifier and TypeMethodDescription@Nullable CommandData
execute
(@NotNull CommandSender source) Executes the command for the given source.static @NotNull ParsedCommand
fromExecutable
(ExecutableCommand executableCommand)
-
Method Details
-
execute
Executes the command for the given source.The command will not be executed if
Command.getCondition()
is not validated.- Parameters:
source
- the command source- Returns:
- the command data, null if none
-
fromExecutable
-