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 CommandDataexecute(@NotNull CommandSender source) Executes the command for the given source.static @NotNull ParsedCommandfromExecutable(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
-