Skip to content

Commit 1241f40

Browse files
authored
[ci skip] Update Player#performCommand javadoc and signature (#13698)
1 parent 67a54b3 commit 1241f40

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

paper-api/src/main/java/org/bukkit/entity/Player.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import org.bukkit.block.TileState;
4747
import org.bukkit.block.data.BlockData;
4848
import org.bukkit.block.sign.Side;
49+
import org.bukkit.command.CommandException;
4950
import org.bukkit.conversations.Conversable;
5051
import org.bukkit.event.block.BlockBreakEvent;
5152
import 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.

0 commit comments

Comments
 (0)