Class ParsedCommand
java.lang.Object
net.minestom.server.command.builder.ParsedCommand
-
Method Summary
Modifier and TypeMethodDescriptionexecute(CommandSender source) Executes the command for the given source.static 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
-