diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 25c677958228..c0b27b966d00 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -43,6 +43,7 @@ import org.bukkit.block.TileState; import org.bukkit.block.data.BlockData; import org.bukkit.block.sign.Side; +import org.bukkit.command.CommandException; import org.bukkit.conversations.Conversable; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockDropItemEvent; @@ -469,10 +470,12 @@ default void kick(final net.kyori.adventure.text.@Nullable Component message) { /** * Makes the player perform the given command * - * @param command Command to perform - * @return true if the command was successful, otherwise false + * @param command the command to perform. Example: test abc 123 + * @return {@code true} if the command was successful, otherwise {@code false} + * @throws CommandException thrown when the executor for the given command fails with an unhandled exception + * @see Server#dispatchCommand(org.bukkit.command.CommandSender, String) */ - public boolean performCommand(String command); + boolean performCommand(String command) throws CommandException; /** * Returns true if the entity is supported by a block.