File tree Expand file tree Collapse file tree
paper-api/src/main/java/org/bukkit/entity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646import org .bukkit .block .TileState ;
4747import org .bukkit .block .data .BlockData ;
4848import org .bukkit .block .sign .Side ;
49+ import org .bukkit .command .CommandException ;
4950import org .bukkit .conversations .Conversable ;
5051import org .bukkit .event .block .BlockBreakEvent ;
5152import org .bukkit .event .block .BlockDropItemEvent ;
@@ -472,10 +473,12 @@ default void kick(final net.kyori.adventure.text.@Nullable Component message) {
472473 /**
473474 * Makes the player perform the given command
474475 *
475- * @param command Command to perform
476- * @return true if the command was successful, otherwise false
476+ * @param command the command to perform. Example: <code>test abc 123</code>
477+ * @return {@code true} if the command was successful, otherwise {@code false}
478+ * @throws CommandException thrown when the executor for the given command fails with an unhandled exception
479+ * @see Server#dispatchCommand(org.bukkit.command.CommandSender, String)
477480 */
478- public boolean performCommand (String command );
481+ boolean performCommand (String command ) throws CommandException ;
479482
480483 /**
481484 * Returns true if the entity is supported by a block.
You can’t perform that action at this time.
0 commit comments