Skip to content

Commit 0e31625

Browse files
committed
♻️ refactor(command): clarify non-player command sender requirement description
- update parameter description for allowIfNonPlayer to specify it bypasses player-only requirement
1 parent f1cf392 commit 0e31625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

surf-api-paper/surf-api-paper/src/main/kotlin/dev/slne/surf/api/paper/command/requirement/SuspendCommandRequirements.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import org.bukkit.entity.Player
2626
* execution should also be checked explicitly inside the command executor.
2727
*
2828
* @param scope the coroutine scope provider used to refresh the requirement
29-
* @param allowIfNonPlayer whether non-player command senders should be allowed
29+
* @param allowIfNonPlayer whether non-player command senders should bypass this player-only requirement
3030
* @param requirement the suspendable predicate used to refresh the cached requirement
3131
* result for a player
3232
*/

0 commit comments

Comments
 (0)