Skip to content

Commit

Permalink
Added "Thrice" to ExprTimes (#7235)
Browse files Browse the repository at this point in the history
* Added "Thrice" to ExprTimes

* Update ExprTimes.sk

---------

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 15, 2024
1 parent 949a847 commit a845cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprTimes.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ExprTimes extends SimpleExpression<Long> {

static {
Skript.registerExpression(ExprTimes.class, Long.class, ExpressionType.SIMPLE,
"%number% time[s]", "once", "twice");
"%number% time[s]", "once", "twice", "thrice");
}

@SuppressWarnings("null")
Expand Down
4 changes: 4 additions & 0 deletions src/test/skript/tests/syntaxes/expressions/ExprTimes.sk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ test "times":
add 1 to {_count}
assert {_count} is 3 with "count was %{_count}% instead of 3"
assert {_three} is 3 with "original number wasn't 3"
set {_count} to 0
loop thrice:
add 1 to {_count}
assert {_count} is 3 with "thrice count was %{_count}% instead of 3"

0 comments on commit a845cb4

Please sign in to comment.