Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples for Elements expression #6526

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Changes from 1 commit
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
8 changes: 7 additions & 1 deletion src/main/java/ch/njol/skript/expressions/ExprElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@
"The first, last, range or a random element of a set, e.g. a list variable.",
"See also: <a href='#ExprRandom'>random expression</a>"
})
@Examples("broadcast the first 3 elements of {top players::*}")
@Examples({
"broadcast the first 3 elements of {top players::*}",
"set {_loser} to last element of {top players::*}",
"set {_random player} to random element out of all players",
"send 2nd last element of {top players::*} to player",
"set {page2::*} to elements from 11 to 20 of {top players::*}"
})
Moderocky marked this conversation as resolved.
Show resolved Hide resolved
@Since("2.0, 2.7 (relative to last element), 2.8.0 (range of elements)")
public class ExprElement<T> extends SimpleExpression<T> {

Expand Down
Loading