Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions paper-api/src/main/java/org/bukkit/entity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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: <code>test abc 123</code>
* @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.
Expand Down
Loading